summaryrefslogtreecommitdiffstats
path: root/modules/mappers/mod_rewrite.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mappers/mod_rewrite.c')
-rw-r--r--modules/mappers/mod_rewrite.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/mappers/mod_rewrite.c b/modules/mappers/mod_rewrite.c
index f7f02b582d..cd14687afb 100644
--- a/modules/mappers/mod_rewrite.c
+++ b/modules/mappers/mod_rewrite.c
@@ -1759,7 +1759,7 @@ static char *lookup_variable(char *var, rewrite_ctx *ctx)
/* fast exit */
if (varlen < 4) {
- return apr_pstrdup(r->pool, "");
+ return "";
}
result = NULL;
@@ -2211,7 +2211,7 @@ static char *do_expand(char *input, rewrite_ctx *ctx, rewriterule_entry *entry)
/* fast exit */
if (inputlen == span) {
- return apr_pstrdup(pool, input);
+ return apr_pstrmemdup(pool, input, inputlen);
}
/* well, actually something to do */