Procházet zdrojové kódy

SEC-1762: Fix input value assertion check for targetUrlParameter.

Luke Taylor před 14 roky
rodič
revize
73b67da3a8

+ 1 - 1
web/src/main/java/org/springframework/security/web/authentication/AbstractAuthenticationTargetUrlRequestHandler.java

@@ -154,7 +154,7 @@ public abstract class AbstractAuthenticationTargetUrlRequestHandler {
      *  to "spring-security-redirect".
      */
     public void setTargetUrlParameter(String targetUrlParameter) {
-        Assert.hasText("targetUrlParameter canot be null or empty");
+        Assert.hasText(targetUrlParameter, "targetUrlParameter cannot be null or empty");
         this.targetUrlParameter = targetUrlParameter;
     }