redirect to abs path
This commit is contained in:
parent
a083f35625
commit
b6f2065a91
@ -39,7 +39,7 @@ import javax.validation.constraints.NotNull;
|
||||
public class SearchModeSearchDatabaseAuthenticationHandler extends
|
||||
AbstractJdbcUsernamePasswordAuthenticationHandler implements InitializingBean {
|
||||
|
||||
private static final String SQL_PREFIX = "Select count('x') from ";
|
||||
private static final String SQL_PREFIX = "select count('x') from ";
|
||||
|
||||
@NotNull
|
||||
private String fieldUser;
|
||||
|
@ -31,6 +31,6 @@
|
||||
</description>
|
||||
|
||||
<bean id="propertyPlaceholderConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
|
||||
<property name="location" value="file:///data/config/cas.properties" />
|
||||
<property name="location" value="file:///data/program/cas/cas.properties" />
|
||||
</bean>
|
||||
</beans>
|
||||
|
@ -39,6 +39,8 @@
|
||||
--%>
|
||||
|
||||
<%
|
||||
final String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath();
|
||||
final String queryString = request.getQueryString();
|
||||
final String url = request.getContextPath() + "/login" + (queryString != null ? "?" + queryString : "");
|
||||
response.sendRedirect(response.encodeURL(url));%>
|
||||
final String url = basePath + "/login" + (queryString != null ? "?" + queryString : "");
|
||||
response.sendRedirect(response.encodeURL(url));
|
||||
%>
|
||||
|
Loading…
x
Reference in New Issue
Block a user