From c69d4cc90c0e27703030b3ff09f91bf4dcbcfd51 Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Tue, 10 Aug 2021 08:55:54 +0000 Subject: [PATCH] Merged r1892012 from trunk: *) 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/util.c b/server/util.c index 143c8fc69a4..0c955e76ec2 100644 --- a/server/util.c +++ b/server/util.c @@ -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++; } -- 2.47.3