]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
mod_rewrite: Follow up to r1893519: Handle potential "unix://[authority]/".
authorYann Ylavic <ylavic@apache.org>
Thu, 23 Sep 2021 07:47:30 +0000 (07:47 +0000)
committerYann Ylavic <ylavic@apache.org>
Thu, 23 Sep 2021 07:47:30 +0000 (07:47 +0000)
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

modules/mappers/mod_rewrite.c

index dc21a8eb83b9cf1733d4763f4855e8c2f14b8eed..343b700c75ca83642922fe2671d34cbbc60031e2 100644 (file)
@@ -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;
         }
     }