summaryrefslogtreecommitdiff
path: root/modules/mappers
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2021-09-23 07:47:30 +0000
committerYann Ylavic <ylavic@apache.org>2021-09-23 07:47:30 +0000
commit0557043c024429cef7a43862cd6b2724a75b39b9 (patch)
tree8533d5d2c9dca046e44e85fcdbeb78f59b173e49 /modules/mappers
parent8720881b0634383145e87334f1456cbcab4cb6cc (diff)
downloadhttpd-0557043c024429cef7a43862cd6b2724a75b39b9.tar.gz
mod_rewrite: Follow up to r1893519: Handle potential "unix://[authority]/".
is_absolute_uri() should return the offset to the authority part, if any. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1893532 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/mappers')
-rw-r--r--modules/mappers/mod_rewrite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mappers/mod_rewrite.c b/modules/mappers/mod_rewrite.c
index dc21a8eb83..343b700c75 100644
--- a/modules/mappers/mod_rewrite.c
+++ b/modules/mappers/mod_rewrite.c
@@ -658,7 +658,7 @@ static unsigned is_absolute_uri(char *uri, int *supportsqs)
case 'U':
if (!ap_cstr_casecmpn(uri, "nix:", 4)) { /* unix: */
*sqs = 1;
- return 5;
+ return (uri[4] == '/' && uri[5] == '/') ? 7 : 5;
}
}