cover mixed slashes, simplify
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@
1930166 13f79535-47bb-0310-9956-
ffa450edef68
return APR_SUCCESS; /* this early, if we have a UNC, it's specified by an admin */
}
- if (!path || (path != ap_strstr_c(path, "\\\\") &&
- path != ap_strstr_c(path, "//"))) {
+ if (!path || !((path[0] == '\\' || path[0] == '/')
+ && (path[1] == '\\' || path[1] == '/'))) {
return APR_SUCCESS; /* not a UNC */
}