]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
fix ap_escape_quotes with pre-escaped quotes
authorEric Covener <covener@apache.org>
Wed, 4 Aug 2021 11:48:38 +0000 (11:48 +0000)
committerEric Covener <covener@apache.org>
Wed, 4 Aug 2021 11:48:38 +0000 (11:48 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1892012 13f79535-47bb-0310-9956-ffa450edef68

server/util.c

index 72aa54d31d19a1d942c8db52ffc6768ea2f63fbb..2d7708ae8512c72e3a81b30cc7e7bb923b787142 100644 (file)
@@ -2621,7 +2621,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++;
         }