|
@@ -19,6 +19,11 @@ import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
+ * <p>
|
|
|
|
+ * User's should consider using {@link StrictHttpFirewall} because rather than trying to
|
|
|
|
+ * sanitize a malicious URL it rejects the malicious URL providing better security
|
|
|
|
+ * guarantees.
|
|
|
|
+ * <p>
|
|
* Default implementation which wraps requests in order to provide consistent
|
|
* Default implementation which wraps requests in order to provide consistent
|
|
* values of the {@code servletPath} and {@code pathInfo}, which do not contain
|
|
* values of the {@code servletPath} and {@code pathInfo}, which do not contain
|
|
* path parameters (as defined in
|
|
* path parameters (as defined in
|
|
@@ -37,10 +42,9 @@ import javax.servlet.http.HttpServletResponse;
|
|
* containers normalize the paths before performing the servlet-mapping, but
|
|
* containers normalize the paths before performing the servlet-mapping, but
|
|
* again this is not guaranteed by the servlet spec.
|
|
* again this is not guaranteed by the servlet spec.
|
|
*
|
|
*
|
|
- * @deprecated Use {@link StrictHttpFirewall} instead
|
|
|
|
* @author Luke Taylor
|
|
* @author Luke Taylor
|
|
|
|
+ * @see StrictHttpFirewall
|
|
*/
|
|
*/
|
|
-@Deprecated
|
|
|
|
public class DefaultHttpFirewall implements HttpFirewall {
|
|
public class DefaultHttpFirewall implements HttpFirewall {
|
|
private boolean allowUrlEncodedSlash;
|
|
private boolean allowUrlEncodedSlash;
|
|
|
|
|