case 't':
case 'T':
if (!*key || !strcasecmp(key, "ype")) { /* type */
- cfg->forced_mimetype = apr_pstrdup(p, val);
+ cfg->forced_mimetype = val;
ap_str_tolower(cfg->forced_mimetype);
}
break;
}
}
- /* arg1: the pattern
- * try to compile the regexp to test if is ok
+ /* arg1: the pattern
+ * try to compile the regexp to test if is ok
*/
if (*a1 == '!') {
newrule->flags |= RULEFLAG_NOTMATCH;
a1, "'", NULL);
}
- newrule->pattern = apr_pstrdup(cmd->pool, a1);
+ newrule->pattern = a1;
newrule->regexp = regexp;
- /* arg2: the output string */
- newrule->output = apr_pstrdup(cmd->pool, a2);
+ /* arg2: the output string */
+ newrule->output = a2;
/* now, if the server or per-dir config holds an
* array of RewriteCond entries, we take it for us
if (cmd->path == NULL) { /* is server command */
newrule->rewriteconds = sconf->rewriteconds;
sconf->rewriteconds = apr_array_make(cmd->pool, 2,
- sizeof(rewritecond_entry));
+ sizeof(rewritecond_entry));
}
else { /* is per-directory command */
newrule->rewriteconds = dconf->rewriteconds;
dconf->rewriteconds = apr_array_make(cmd->pool, 2,
- sizeof(rewritecond_entry));
+ sizeof(rewritecond_entry));
}
return NULL;