Skip to content

Commit 76bcba2

Browse files
committed
Correcting minor differences with v4's exit script fix
1 parent 2b5f08b commit 76bcba2

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

gocwebtemplate-core/gocwebtemplate-core-base/src/main/java/goc/webtemplate/component/BaseUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ public static void doLocaleSwitch(HttpServletRequest req, HttpServletResponse re
2020

2121
String prevUrl = URLDecoder.decode(req.getParameter(Constants.QUERYSTRING_KEY), "UTF-8");
2222

23-
// Validate that the redirect link is relative to the host and NOT absolute or relative to scheme
24-
if ((!prevUrl.startsWith("/")) || prevUrl.startsWith("//")) throw new Exception("Unauthorized return URL specified for language switching.");
23+
// Validate that the redirect link is relative to the host and NOT absolute or relative to scheme
24+
if ((!prevUrl.startsWith("/")) || prevUrl.startsWith("//")) throw new Exception("Unauthorized return URL specified for language switching.");
2525

2626
res.sendRedirect(prevUrl);
2727
}

gocwebtemplate-sample-jsp/src/main/webapp/samplecontents/leavesecuresitesamplecontent.jsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<h1>GoC Web Template Samples - Leaving Secure Site</h1>
1+
<h1 id="wb-cont">GoC Web Template Samples - Leaving Secure Site</h1>
22
<p>In certain scenarios (ex: secure sites) we want to notify the user that the link or action they have just performed will exit the current secured site/session and it is possible that data could be lost. The message allows the user to cancel the redirect or continue with the redirect.</p>
33
<h2>Pre-requisite</h2>
44
<p>To override the Default GoC Web Template look &amp; feel, you will have to create a custom bean class that extends the <code class="wb-prettify">goc.webtemplate.component.jsp.BaseCoreBean</code> class, and then override the various methods made available to alter the look &amp; feel of the web page.</p>

gocwebtemplate-sample-spring/src/main/resources/samples/LeavingSecureSiteSample.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
</head>
55
<body>
66
<section layout:fragment="content">
7-
<h1>GoC Web Template Samples - Leaving Secure Site</h1>
7+
<h1 id="wb-cont">GoC Web Template Samples - Leaving Secure Site</h1>
88
<p>In certain scenarios (ex: secure sites) we want to notify the user that the link or action they have just performed will exit the current secured site/session and it is possible that data could be lost. The message allows the user to cancel the redirect or continue with the redirect.</p>
99
<h2>Pre-requisite</h2>
1010
<p>To override the Default GoC Web Template look &amp; feel, you will have to create a custom bean class that extends the <code class="wb-prettify">goc.webtemplate.component.spring.BaseCoreBean</code> class, and then override the various methods made available to alter the look &amp; feel of the web page.</p>

0 commit comments

Comments
 (0)