]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merged r1892012 from trunk:
authorStefan Eissing <icing@apache.org>
Tue, 10 Aug 2021 08:55:54 +0000 (08:55 +0000)
committerStefan Eissing <icing@apache.org>
Tue, 10 Aug 2021 08:55:54 +0000 (08:55 +0000)
  *) core: fix ap_escape_quotes for pre-escaped quotes

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

server/util.c

index 143c8fc69a4528d48a4fe455b5f6162955cb5841..0c955e76ec2ccc3ea68c79daf08375608641fddc 100644 (file)
@@ -2542,7 +2542,7 @@ AP_DECLARE(char *) ap_escape_quotes(apr_pool_t *p, const char *instring)
      * in front of every " that doesn't already have one.
      */
     while (*inchr != '\0') {
-        if ((*inchr == '\\') && (inchr[1] != '\0')) {
+        while ((*inchr == '\\') && (inchr[1] != '\0')) {
             *outchr++ = *inchr++;
             *outchr++ = *inchr++;
         }