You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by mi...@apache.org on 2023/04/14 14:03:03 UTC

svn commit: r1909136 - /httpd/httpd/trunk/include/http_config.h

Author: minfrin
Date: Fri Apr 14 14:03:03 2023
New Revision: 1909136

URL: http://svn.apache.org/viewvc?rev=1909136&view=rev
Log:
Include header file for the explicit regex.

Modified:
    httpd/httpd/trunk/include/http_config.h

Modified: httpd/httpd/trunk/include/http_config.h
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/include/http_config.h?rev=1909136&r1=1909135&r2=1909136&view=diff
==============================================================================
--- httpd/httpd/trunk/include/http_config.h (original)
+++ httpd/httpd/trunk/include/http_config.h Fri Apr 14 14:03:03 2023
@@ -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 <Files>,
-     * <Location> 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;
 };
 
 /**