From d8bce6f575abb29997bba358b31842bf757776c6 Mon Sep 17 00:00:00 2001
From: Eric Covener <covener@apache.org>
Date: Wed, 4 Aug 2021 11:48:38 +0000
Subject: [PATCH] fix ap_escape_quotes with pre-escaped quotes

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1892012 13f79535-47bb-0310-9956-ffa450edef68
---
 server/util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/util.c b/server/util.c
index 72aa54d31d1..2d7708ae851 100644
--- a/server/util.c
+++ b/server/util.c
@@ -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++;
         }
