Skip to content

Commit

Permalink
🐛 修复 URL 带参登录报错问题
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Jul 17, 2019
1 parent bdf132b commit 2464ab7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/org/b3log/solo/processor/IndexProcessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -56,7 +57,7 @@
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="https://hacpai.com/member/DASHU">DASHU</a>
* @author <a href="https://vanessa.b3log.org">Vanessa</a>
* @version 1.2.4.16, Mar 19, 2019
* @version 1.2.4.17, Jul 17, 2019
* @since 0.3.1
*/
@RequestProcessor
Expand Down Expand Up @@ -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());
Expand Down

0 comments on commit 2464ab7

Please sign in to comment.