浏览代码

SEC-1226: Additional Javadoc.

Luke Taylor 16 年之前
父节点
当前提交
ff78ec00f7
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      web/src/main/java/org/springframework/security/web/DefaultRedirectStrategy.java

+ 3 - 1
web/src/main/java/org/springframework/security/web/DefaultRedirectStrategy.java

@@ -18,7 +18,9 @@ public class DefaultRedirectStrategy implements RedirectStrategy {
     /**
      * Redirects the response to the supplied URL.
      * <p>
-     * If <tt>contextRelative</tt> is set, the redirect value will be the value after the request context path.
+     * If <tt>contextRelative</tt> is set, the redirect value will be the value after the request context path. Note
+     * that this will result in the loss of protocol information (HTTP or HTTPS), so will cause problems if a
+     * redirect is being performed to change to HTTPS, for example.
      */
     public void sendRedirect(HttpServletRequest request, HttpServletResponse response, String url) throws IOException {
         String finalUrl;