Skip to content

Commit 7ac1c84

Browse files
committed
Fix to Issue # 190
1 parent 02c95cd commit 7ac1c84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/owasp/esapi/reference/DefaultHTTPUtilities.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ public void sendForward( String location ) throws AccessControlException,Servle
811811
public void sendRedirect(HttpServletResponse response, String location) throws AccessControlException, IOException {
812812
if (!ESAPI.validator().isValidRedirectLocation("Redirect", location, false)) {
813813
logger.fatal(Logger.SECURITY_FAILURE, "Bad redirect location: " + location);
814-
throw new IOException("Redirect failed");
814+
throw new AccessControlException("Redirect failed");
815815
}
816816
response.sendRedirect(location);
817817
}

0 commit comments

Comments
 (0)