]> granicus.if.org Git - apache/commitdiff
Fix r578332 for backslashing filesystems, as noted by rpluem
authorNick Kew <niq@apache.org>
Sat, 22 Sep 2007 19:30:20 +0000 (19:30 +0000)
committerNick Kew <niq@apache.org>
Sat, 22 Sep 2007 19:30:20 +0000 (19:30 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@578479 13f79535-47bb-0310-9956-ffa450edef68

server/util.c

index a7e74710fdf65d1e771b477ac30e722e02317d0f..df806aa384afb962ffa3bcb534e8fef228b01903 100644 (file)
@@ -1605,7 +1605,11 @@ static int unescape_url(char *url, const char *forbid, const char *reserved)
 AP_DECLARE(int) ap_unescape_url(char *url)
 {
     /* Traditional */
+#ifdef CASE_BLIND_FILESYSTEM
+    return unescape_url(url, "/\\", NULL);
+#else
     return unescape_url(url, "/", NULL);
+#endif
 }
 AP_DECLARE(int) ap_unescape_url_keep2f(char *url)
 {