c1cfc8
diff --git a/server/util.c b/server/util.c
c1cfc8
index e0c558c..2a5dd04 100644
c1cfc8
--- a/server/util.c
c1cfc8
+++ b/server/util.c
c1cfc8
@@ -2460,13 +2460,12 @@ AP_DECLARE(char *) ap_escape_quotes(apr_pool_t *p, const char *instring)
c1cfc8
      * in front of every " that doesn't already have one.
c1cfc8
      */
c1cfc8
     while (*inchr != '\0') {
c1cfc8
-        if ((*inchr == '\\') && (inchr[1] != '\0')) {
c1cfc8
-            *outchr++ = *inchr++;
c1cfc8
-            *outchr++ = *inchr++;
c1cfc8
-        }
c1cfc8
         if (*inchr == '"') {
c1cfc8
             *outchr++ = '\\';
c1cfc8
         }
c1cfc8
+        if ((*inchr == '\\') && (inchr[1] != '\0')) {
c1cfc8
+            *outchr++ = *inchr++;
c1cfc8
+        }
c1cfc8
         if (*inchr != '\0') {
c1cfc8
             *outchr++ = *inchr++;
c1cfc8
         }