Skip to content

Commit e68293e

Browse files
committed
Addressing copy/paste mistakes
Signed-off-by: Joakim Erdfelt <[email protected]>
1 parent f9b5974 commit e68293e

File tree

2 files changed

+2
-2
lines changed
  • jetty-http/src/main/java/org/eclipse/jetty/http
  • jetty-server/src/main/java/org/eclipse/jetty/server

2 files changed

+2
-2
lines changed

jetty-http/src/main/java/org/eclipse/jetty/http/HttpURI.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ public boolean hasAmbiguousSeparator()
662662
}
663663

664664
/**
665-
* @return True if the URI has a possibly ambiguous separator of %2f
665+
* @return True if the URI has a possibly ambiguous path parameter like '..;'
666666
*/
667667
public boolean hasAmbiguousParameter()
668668
{

jetty-server/src/main/java/org/eclipse/jetty/server/Request.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1837,7 +1837,7 @@ public void setMetaData(org.eclipse.jetty.http.MetaData.Request request)
18371837
if (uri.hasAmbiguousSeparator() && (compliance == null || compliance.sections().contains(HttpComplianceSection.NO_AMBIGUOUS_PATH_SEPARATORS)))
18381838
throw new BadMessageException("Ambiguous separator in URI");
18391839
if (uri.hasAmbiguousParameter() && (compliance == null || compliance.sections().contains(HttpComplianceSection.NO_AMBIGUOUS_PATH_PARAMETERS)))
1840-
throw new BadMessageException("Ambiguous separator in URI");
1840+
throw new BadMessageException("Ambiguous path parameter in URI");
18411841
}
18421842

18431843
_originalURI = uri.isAbsolute() && request.getHttpVersion() != HttpVersion.HTTP_2 ? uri.toString() : uri.getPathQuery();

0 commit comments

Comments
 (0)