Addressing copy/paste mistakes
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
This commit is contained in:
parent
f9b5974ded
commit
e68293ef4e
|
@ -662,7 +662,7 @@ public class HttpURI
|
|||
}
|
||||
|
||||
/**
|
||||
* @return True if the URI has a possibly ambiguous separator of %2f
|
||||
* @return True if the URI has a possibly ambiguous path parameter like '..;'
|
||||
*/
|
||||
public boolean hasAmbiguousParameter()
|
||||
{
|
||||
|
|
|
@ -1837,7 +1837,7 @@ public class Request implements HttpServletRequest
|
|||
if (uri.hasAmbiguousSeparator() && (compliance == null || compliance.sections().contains(HttpComplianceSection.NO_AMBIGUOUS_PATH_SEPARATORS)))
|
||||
throw new BadMessageException("Ambiguous separator in URI");
|
||||
if (uri.hasAmbiguousParameter() && (compliance == null || compliance.sections().contains(HttpComplianceSection.NO_AMBIGUOUS_PATH_PARAMETERS)))
|
||||
throw new BadMessageException("Ambiguous separator in URI");
|
||||
throw new BadMessageException("Ambiguous path parameter in URI");
|
||||
}
|
||||
|
||||
_originalURI = uri.isAbsolute() && request.getHttpVersion() != HttpVersion.HTTP_2 ? uri.toString() : uri.getPathQuery();
|
||||
|
|
Loading…
Reference in New Issue