diff options
author | Yann Ylavic <ylavic@apache.org> | 2021-09-23 07:47:30 +0000 |
---|---|---|
committer | Yann Ylavic <ylavic@apache.org> | 2021-09-23 07:47:30 +0000 |
commit | 0557043c024429cef7a43862cd6b2724a75b39b9 (patch) | |
tree | 8533d5d2c9dca046e44e85fcdbeb78f59b173e49 /modules/mappers | |
parent | 8720881b0634383145e87334f1456cbcab4cb6cc (diff) | |
download | httpd-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.c | 2 |
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; } } |