]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Include header file for the explicit regex.
authorGraham Leggett <minfrin@apache.org>
Fri, 14 Apr 2023 14:03:03 +0000 (14:03 +0000)
committerGraham Leggett <minfrin@apache.org>
Fri, 14 Apr 2023 14:03:03 +0000 (14:03 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1909136 13f79535-47bb-0310-9956-ffa450edef68

include/http_config.h

index 39fe72aff8cdceda7db68efc5171175a85f02e84..8f150465a5b267b8ea2eefb500a6f095c4073c28 100644 (file)
@@ -313,12 +313,9 @@ struct cmd_parms_struct {
     apr_pool_t *temp_pool;
     /** Server_rec being configured for */
     server_rec *server;
-    /** If configuring for a directory, pathname of that directory.
-     *  NOPE!  That's what it meant previous to the existence of &lt;Files&gt;,
-     * &lt;Location&gt; and regex matching.  Now the only usefulness that can be
-     * derived from this field is whether a command is being called in a
-     * server context (path == NULL) or being called in a dir context
-     * (path != NULL).  */
+    /** If configuring for a directory, pathname of that directory. If the
+     *  pathname is a regex, regex will be non-NULL below. If path is NULL,
+     *  the directive is being called from a server context. */
     char *path;
     /** configuration command */
     const command_rec *cmd;
@@ -331,6 +328,9 @@ struct cmd_parms_struct {
     /** If the current directive is EXEC_ON_READ, this is the last 
         (non-EXEC_ON_READ)  enclosing directive  */
     ap_directive_t *parent;
+
+    /** If the path is a regex, compiled regex will be not NULL. */
+    ap_regex_t *regex;
 };
 
 /**