projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37fffc8
)
Don't quote empty redirect destination
author
Jamie Cameron
<jcameron@webmin.com>
Tue, 14 Jul 2009 07:20:25 +0000
(07:20 +0000)
committer
Jamie Cameron
<jcameron@webmin.com>
Tue, 14 Jul 2009 07:20:25 +0000
(07:20 +0000)
apache/mod_alias.pl
patch
|
blob
|
history
diff --git
a/apache/mod_alias.pl
b/apache/mod_alias.pl
index
bb23eae
..
1f28db2
100644
(file)
--- a/
apache/mod_alias.pl
+++ b/
apache/mod_alias.pl
@@
-111,8
+111,9
@@
for($i=0; defined($in{"$_[0]_from_$i"}); $i++) {
&error(&text('mod_alias_edest2', $to, $_[1]));
}
else { $to = ""; }
- if ($stat) { push(@rv, "$stat $from \"$to\""); }
- else { push(@rv, "$from \"$to\""); }
+ $to = "\"$to\"" if ($to);
+ if ($stat) { push(@rv, "$stat $from $to"); }
+ else { push(@rv, "$from $to"); }
}
return ( \@rv );
}