https://bz.apache.org/bugzilla/show_bug.cgi?id=62833
Bug ID: 62833
Summary: Support for using underscores in host
Product: Tomcat 8
Version: 8.5.x-trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: Util
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ----
In the previous version, such as 8.5.16, supported for using underscores in
host.
The recent version has made some refactorings for Httpparser and has not added
support for it.
The code is corrected as follows:
[org.apache.tomcat.util.http.parser.HttpParser]
````
public DomainParseState next(int c) {
...
// Add '_' condition
} else if (c == '-' || c == '_') {
if (allowsHyphen) {
return HYPHEN;
} else {
throw new
IllegalArgumentException(sm.getString("http.invalidCharacterDomain",
Character.toString((char) c), errorLocation));
}
} else {
throw new IllegalArgumentException(sm.getString(
"http.illegalCharacterDomain", Character.toString((char) c)));
}
}
````
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]