projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b9c777
)
Make sure redirect is to a URL
author
Jamie Cameron
<jcameron@webmin.com>
Tue, 2 Sep 2008 16:54:38 +0000
(16:54 +0000)
committer
Jamie Cameron
<jcameron@webmin.com>
Tue, 2 Sep 2008 16:54:38 +0000
(16:54 +0000)
apache/mod_alias.pl
patch
|
blob
|
history
diff --git
a/apache/mod_alias.pl
b/apache/mod_alias.pl
index
5bc4d74
..
2936019
100644
(file)
--- a/
apache/mod_alias.pl
+++ b/
apache/mod_alias.pl
@@
-36,8
+36,7
@@
return (2, $_[2], $rv);
%alias_statmap = ("permanent", 301, "temp", 302,
"seeother", 303, "gone", 410);
-#$url_regexp = '^(http|ftp|gopher|https|mailto|telnet):(\S+)$';
-$url_regexp = '^\S+$';
+$url_regexp = '^(http:\/\/|ftp:\/\/|gopher:|https:\/\/|mailto:|telnet:)(\S+)$';
# alias_status_input(array, name, title)
sub alias_status_input