Skip to content
Permalink
Browse files Browse the repository at this point in the history
LPS-68469 Missing escape
  • Loading branch information
topolik authored and brianchandotcom committed Oct 4, 2016
1 parent 567a98e commit 333f65b
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -19,7 +19,8 @@ taglib uri="http://liferay.com/tld/theme" prefix="liferay-theme" %>

<%@ page import="com.liferay.frontend.js.spa.web.internal.constants.SPAWebKeys" %><%@
page import="com.liferay.frontend.js.spa.web.internal.servlet.taglib.util.SPAUtil" %><%@
page import="com.liferay.portal.kernel.language.LanguageUtil" %>
page import="com.liferay.portal.kernel.language.LanguageUtil" %><%@
page import="com.liferay.portal.kernel.util.HtmlUtil" %>
<liferay-theme:defineObjects />
Expand All @@ -33,7 +34,7 @@ SPAUtil spaUtil = (SPAUtil)request.getAttribute(SPAWebKeys.SPA_UTIL);
Liferay.SPA.cacheExpirationTime = <%= spaUtil.getCacheExpirationTime(themeDisplay.getCompanyId()) %>;
Liferay.SPA.clearScreensCache = <%= spaUtil.isClearScreensCache(request, session) %>;
Liferay.SPA.excludedPaths = <%= spaUtil.getExcludedPaths() %>;
Liferay.SPA.loginRedirect = '<%= spaUtil.getLoginRedirect(request) %>';
Liferay.SPA.loginRedirect = '<%= HtmlUtil.escapeJS(spaUtil.getLoginRedirect(request)) %>';
Liferay.SPA.requestTimeout = <%= spaUtil.getRequestTimeout() %>;
Liferay.SPA.userNotification = {
message: '<%= LanguageUtil.get(spaUtil.getLanguageResourceBundle(themeDisplay.getLocale()), "it-looks-like-this-is-taking-longer-than-expected") %>',
Expand Down

0 comments on commit 333f65b

Please sign in to comment.