Make sure redirect is to a URL
authorJamie Cameron <jcameron@webmin.com>
Tue, 2 Sep 2008 16:54:38 +0000 (16:54 +0000)
committerJamie Cameron <jcameron@webmin.com>
Tue, 2 Sep 2008 16:54:38 +0000 (16:54 +0000)
apache/mod_alias.pl

index 5bc4d74..2936019 100644 (file)
@@ -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