You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
694 B
22 lines
694 B
2 years ago
|
diff --git a/server/util.c b/server/util.c
|
||
|
index e0c558c..2a5dd04 100644
|
||
|
--- a/server/util.c
|
||
|
+++ b/server/util.c
|
||
|
@@ -2460,13 +2460,12 @@ 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')) {
|
||
|
- *outchr++ = *inchr++;
|
||
|
- *outchr++ = *inchr++;
|
||
|
- }
|
||
|
if (*inchr == '"') {
|
||
|
*outchr++ = '\\';
|
||
|
}
|
||
|
+ if ((*inchr == '\\') && (inchr[1] != '\0')) {
|
||
|
+ *outchr++ = *inchr++;
|
||
|
+ }
|
||
|
if (*inchr != '\0') {
|
||
|
*outchr++ = *inchr++;
|
||
|
}
|