]> granicus.if.org Git - apache/commitdiff
We are Substitute now :)
authorJim Jagielski <jim@apache.org>
Sat, 25 Aug 2007 12:41:14 +0000 (12:41 +0000)
committerJim Jagielski <jim@apache.org>
Sat, 25 Aug 2007 12:41:14 +0000 (12:41 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@569659 13f79535-47bb-0310-9956-ffa450edef68

modules/experimental/mod_substitute.c

index 4b0c85442545937f77ec769d93307091b1e026a6..04a3010baeba836019441d7d70bf5710422d2ab2 100644 (file)
@@ -449,7 +449,7 @@ static const char *set_pattern(cmd_parms *cmd, void *cfg, const char *line)
     ap_regex_t *r = NULL;
 
     if (apr_tolower(*line) != 's') {
-        return "Bad Rewrite format, must be an s/// pattern";
+        return "Bad Substitute format, must be an s/// pattern";
     }
     ourline = apr_pstrdup(cmd->pool, line);
     delim = *++ourline;
@@ -471,7 +471,7 @@ static const char *set_pattern(cmd_parms *cmd, void *cfg, const char *line)
     }
 
     if (!delim || !from || !to) {
-        return "Bad Rewrite format, must be a complete s/// pattern";
+        return "Bad Substitute format, must be a complete s/// pattern";
     }
 
     while (*flags) {
@@ -483,7 +483,7 @@ static const char *set_pattern(cmd_parms *cmd, void *cfg, const char *line)
         else if (delim == 'f')
             flatten = 1;
         else
-            return "Bad Rewrite flag, only s///[inf] are supported";
+            return "Bad Substitute flag, only s///[inf] are supported";
         flags++;
     }
 
@@ -492,7 +492,7 @@ static const char *set_pattern(cmd_parms *cmd, void *cfg, const char *line)
         r = ap_pregcomp(cmd->pool, from, AP_REG_EXTENDED |
                         (ignore_case ? AP_REG_ICASE : 0));
         if (!r)
-            return "Rewrite could not compile regex";
+            return "Substitute could not compile regex";
     }
     nscript = apr_array_push(((subst_dir_conf *) cfg)->patterns);
     /* init the new entries */