Skip to content

Commit b636047

Browse files
committed
Merge r1930162 from trunk:
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
1 parent 57a2fd2 commit b636047

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/core.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5673,8 +5673,8 @@ static apr_status_t check_unc(const char *path, apr_pool_t *p)
56735673
return APR_SUCCESS; /* this early, if we have a UNC, it's specified by an admin */
56745674
}
56755675

5676-
if (!path || (path != ap_strstr_c(path, "\\\\") &&
5677-
path != ap_strstr_c(path, "//"))) {
5676+
if (!path || !((path[0] == '\\' || path[0] == '/')
5677+
&& (path[1] == '\\' || path[1] == '/'))) {
56785678
return APR_SUCCESS; /* not a UNC */
56795679
}
56805680

0 commit comments

Comments
 (0)