]> granicus.if.org Git - apache/commitdiff
Fix trailing backslashes in configuration directives.
authorPaul Querna <pquerna@apache.org>
Tue, 24 May 2005 17:25:41 +0000 (17:25 +0000)
committerPaul Querna <pquerna@apache.org>
Tue, 24 May 2005 17:25:41 +0000 (17:25 +0000)
PR: 34834
Submitted by: Timo Viipuri <viipuri dlc.fi>
Reviewed by: Paul Querna

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@178209 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
server/util.c

diff --git a/CHANGES b/CHANGES
index 3e11cfa511f13c8ed86f10724606108dffbfd056..4981527dedafb72a4f9f44780bf821cb4ace7199 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,9 @@ Changes with Apache 2.1.5
 
   [Remove entries to the current 2.0 section below, when backported]
 
+  *) ap_getword_conf: Fix backslashes at the end of configuration directives. 
+     PR 34834. [Timo Viipuri <viipuri dlc.fi>]
+
   *) mod_dbd: New additions: mod_dbd.c, mod_dbd.h, mod_dbd.xml
      Provide module hooks for apr_dbd; optimise for httpd
      threaded and non-threaded arch [Nick Kew]
index f506423b24540018f6cdfc836feed09688df66dd..34d7ce51ae382d5ef5c1b7b01c270f0d28f102e5 100644 (file)
@@ -732,10 +732,13 @@ AP_DECLARE(char *) ap_getword_conf(apr_pool_t *p, const char **line)
     if ((quote = *str) == '"' || quote == '\'') {
         strend = str + 1;
         while (*strend && *strend != quote) {
-            if (*strend == '\\' && strend[1] && strend[1] == quote)
+            if (*strend == '\\' && strend[1] && 
+                (strend[1] == quote || strend[1] == '\\')) {
                 strend += 2;
-            else
+            }
+            else {
                 ++strend;
+            }
         }
         res = substring_conf(p, str + 1, strend - str - 1, quote);