]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge r1906487 from trunk:
authorEric Covener <covener@apache.org>
Tue, 10 Jan 2023 13:21:48 +0000 (13:21 +0000)
committerEric Covener <covener@apache.org>
Tue, 10 Jan 2023 13:21:48 +0000 (13:21 +0000)
* modules/dav/main/util.c (dav_process_if_header): Fix error
  path for "Not" prefix parsing.

Submitted By: jorton
Reviewed By: jorton, covener, rpluem

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1906543 13f79535-47bb-0310-9956-ffa450edef68

STATUS
modules/dav/main/util.c

diff --git a/STATUS b/STATUS
index ed64d518c62cd0be0b4b9194594e060e2960bbc4..911dfaa986f8f3ccc5002e2fa35cea89437349b2 100644 (file)
--- a/STATUS
+++ b/STATUS
@@ -149,14 +149,6 @@ RELEASE SHOWSTOPPERS:
 PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
   [ start all new proposals below, under PATCHES PROPOSED. ]
 
-  *) mod_dav: fix error path for "Not" parsing in If header. 
-     Trunk version of patch:
-        https://svn.apache.org/r1906487
-     Backport version for 2.4.x of patch:
-        Trunk version of patch works
-        svn merge -c 1906487 ^/httpd/httpd/trunk .
-     +1: jorton, covener, rpluem
-
 PATCHES PROPOSED TO BACKPORT FROM TRUNK:
   [ New proposals should be added at the end of the list ]
 
index 1ae5914027c19de3709416fc145d91400d01f68a..3f7822fc931283d28275c4abfd50392c66e280da 100644 (file)
@@ -801,8 +801,14 @@ static dav_error * dav_process_if_header(request_rec *r, dav_if_header **p_ih)
                                                  "for the same state.");
                         }
                         condition = DAV_IF_COND_NOT;
+                        list += 2;
+                    }
+                    else {
+                        return dav_new_error(r->pool, HTTP_BAD_REQUEST,
+                                             DAV_ERR_IF_UNK_CHAR, 0,
+                                             "Invalid \"If:\" header: "
+                                             "Unexpected character in List");
                     }
-                    list += 2;
                     break;
 
                 case ' ':