From: Eric Covener Date: Wed, 4 Aug 2021 11:48:38 +0000 (+0000) Subject: fix ap_escape_quotes with pre-escaped quotes X-Git-Tag: 2.5.0-alpha2-ci-test-only~875 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d8bce6f575abb29997bba358b31842bf757776c6;p=thirdparty%2Fapache%2Fhttpd.git 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 --- 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++; }