No need for quotes around paths or URLs

This commit is contained in:
Jamie Cameron
2014-05-14 21:37:24 -07:00
parent cc935c6883
commit 129551cff8

View File

@@ -84,7 +84,12 @@ for($i=0; defined($in{"$_[0]_from_$i"}); $i++) {
&allowed_doc_dir($to) ||
$old_to && !&allowed_doc_dir($old_to) ||
&error(&text('mod_alias_edest2', $to, $_[1]));
push(@rv, "$from \"$to\"");
if ($to =~ /^[a-zA-Z0-9:\/\.\-]+$/) {
push(@rv, "$from $to");
}
else {
push(@rv, "$from \"$to\"");
}
}
return ( \@rv );
}