From 2464ab7e997de560066a285e71013315a9313de8 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Wed, 17 Jul 2019 11:14:03 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=20URL=20=E5=B8=A6?= =?UTF-8?q?=E5=8F=82=E7=99=BB=E5=BD=95=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/org/b3log/solo/processor/IndexProcessor.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/b3log/solo/processor/IndexProcessor.java b/src/main/java/org/b3log/solo/processor/IndexProcessor.java index fb52a614d..fef8e743c 100644 --- a/src/main/java/org/b3log/solo/processor/IndexProcessor.java +++ b/src/main/java/org/b3log/solo/processor/IndexProcessor.java @@ -33,6 +33,7 @@ import org.b3log.latke.servlet.renderer.AbstractFreeMarkerRenderer; import org.b3log.latke.util.Locales; import org.b3log.latke.util.Paginator; +import org.b3log.latke.util.URLs; import org.b3log.solo.SoloServletListener; import org.b3log.solo.model.Common; import org.b3log.solo.model.Option; @@ -56,7 +57,7 @@ * @author Liang Ding * @author DASHU * @author Vanessa - * @version 1.2.4.16, Mar 19, 2019 + * @version 1.2.4.17, Jul 17, 2019 * @since 0.3.1 */ @RequestProcessor @@ -183,7 +184,7 @@ public void showStart(final RequestContext context) { dataModel.put(Common.VERSION, SoloServletListener.VERSION); dataModel.put(Common.STATIC_RESOURCE_VERSION, Latkes.getStaticResourceVersion()); dataModel.put(Common.YEAR, String.valueOf(Calendar.getInstance().get(Calendar.YEAR))); - dataModel.put(Common.REFERER, referer); + dataModel.put(Common.REFERER, URLs.encode(referer)); Keys.fillRuntime(dataModel); dataModelService.fillMinified(dataModel); dataModelService.fillFaviconURL(dataModel, optionQueryService.getPreference());