MCPcopy Create free account
hub / github.com/apache/tomcat / nextSlash

Method nextSlash

java/org/apache/catalina/connector/Request.java:2051–2065  ·  view source on GitHub ↗
(char[] uri, int startPos)

Source from the content-addressed store, hash-verified

2049
2050
2051 private int nextSlash(char[] uri, int startPos) {
2052 int len = uri.length;
2053 int pos = startPos;
2054 while (pos < len) {
2055 if (uri[pos] == '/') {
2056 return pos;
2057 } else if (connector.getEncodedSolidusHandlingInternal() == EncodedSolidusHandling.DECODE &&
2058 uri[pos] == '%' && pos + 2 < len && uri[pos + 1] == '2' &&
2059 (uri[pos + 2] == 'f' || uri[pos + 2] == 'F')) {
2060 return pos;
2061 }
2062 pos++;
2063 }
2064 return -1;
2065 }
2066
2067
2068 @Override

Callers 1

getContextPathMethod · 0.95

Tested by

no test coverage detected