]> granicus.if.org Git - apache/commitdiff
Fix for BrowserMatchNoCase, which was incorrectly treating non-regex
authorBrian Pane <brianp@apache.org>
Sat, 30 Nov 2002 21:48:12 +0000 (21:48 +0000)
committerBrian Pane <brianp@apache.org>
Sat, 30 Nov 2002 21:48:12 +0000 (21:48 +0000)
patterns as case-sensitive
Submitted by: Andr�� Malo
Reviewed by: Brian Pane

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

modules/metadata/mod_setenvif.c

index 0ec817153450e16b642c807bef44725269a7e8a1..11490309735e1f73c9cc812f1c5d59b4a37373cf 100644 (file)
@@ -342,7 +342,7 @@ static const char *add_setenvif_core(cmd_parms *cmd, void *mconfig,
         new->icase = icase;
         if ((simple_pattern = non_regex_pattern(cmd->pool, regex))) {
             new->pattern = apr_strmatch_precompile(cmd->pool,
-                                                   simple_pattern, 1);
+                                                   simple_pattern, !icase);
             if (new->pattern == NULL) {
                 return apr_pstrcat(cmd->pool, cmd->cmd->name,
                                    " pattern could not be compiled.", NULL);