]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge r1917017, r1923218 from trunk:
authorJoe Orton <jorton@apache.org>
Fri, 14 Feb 2025 09:16:23 +0000 (09:16 +0000)
committerJoe Orton <jorton@apache.org>
Fri, 14 Feb 2025 09:16:23 +0000 (09:16 +0000)
* server/core.c (set_override): Catch errors returned by
  set_allow_opts() for a parsing fail in an Options= argument.

Submitted by: Zhou Qingyang <zhou1615 umn.edu>
Github: closes #310

Add a Changes entry related to r1917017

While at it, fix a small style issue (tab vs spaces)

Submitted by: jorton, jailletc36
Reviewed by: rjung (reduce code drift), jorton, jailletc36

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

changes-entries/github 310.txt [new file with mode: 0644]
server/core.c

diff --git a/changes-entries/github 310.txt b/changes-entries/github 310.txt
new file mode 100644 (file)
index 0000000..2d966cd
--- /dev/null
@@ -0,0 +1,3 @@
+  *) core: Report invalid Options= argument when parsing AllowOverride
+     directives.
+     Github #310 [Zhou Qingyang <zhou1615 umn.edu>]
index a27769f3d3137f3a86b6e0cd5f37d3f28c4bdd1f..cfd3c7915e6ed5969fef07a023364bd85d26aacb 100644 (file)
@@ -1838,8 +1838,10 @@ static const char *set_override(cmd_parms *cmd, void *d_, const char *l)
         }
         else if (!ap_cstr_casecmp(k, "Options")) {
             d->override |= OR_OPTIONS;
-            if (v)
-                set_allow_opts(cmd, &(d->override_opts), v);
+            if (v) {
+                if ((err = set_allow_opts(cmd, &(d->override_opts), v)) != NULL)
+                    return err;
+            }
             else
                 d->override_opts = OPT_ALL;
         }