From: Stefan Eissing Date: Tue, 10 Aug 2021 08:55:54 +0000 (+0000) Subject: Merged r1892012 from trunk: X-Git-Tag: candidate-2.4.49~3^2~35 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c69d4cc90c0e27703030b3ff09f91bf4dcbcfd51;p=thirdparty%2Fapache%2Fhttpd.git 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 --- 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++; }