]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge of r1893516 from trunk:
authorStefan Eissing <icing@apache.org>
Thu, 23 Sep 2021 12:29:03 +0000 (12:29 +0000)
committerStefan Eissing <icing@apache.org>
Thu, 23 Sep 2021 12:29:03 +0000 (12:29 +0000)
   *) mod_rewrite: Fix UDS ("unix:") scheme for [P] rules.  PR 57691 + 65590.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1893556 13f79535-47bb-0310-9956-ffa450edef68

changes-entries/rewrite_uds.txt [new file with mode: 0644]
modules/mappers/mod_rewrite.c

diff --git a/changes-entries/rewrite_uds.txt b/changes-entries/rewrite_uds.txt
new file mode 100644 (file)
index 0000000..4b752a8
--- /dev/null
@@ -0,0 +1,2 @@
+  *) mod_rewrite: Fix UDS ("unix:") scheme for [P] rules.  PR 57691 + 65590.
+     [Janne Peltonen <janne.peltonen sange.fi>]
\ No newline at end of file
index a51e86f8a3c18195e3fb956020e80e4c98c5d378..8adc92c7253fa8b4ce2f37e7b1a812d90f56c804 100644 (file)
@@ -617,6 +617,13 @@ static unsigned is_absolute_uri(char *uri, int *supportsqs)
             return 6;
         }
         break;
+
+    case 'u':
+    case 'U':
+        if (!ap_cstr_casecmpn(uri, "nix:", 4)) {        /* unix:     */
+            *sqs = 1;
+            return 5;
+        }
     }
 
     return 0;