From 7bfce5488693b7bc1ea877fe910aa871fd4cb546 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Fri, 6 Nov 2015 23:07:48 -0800 Subject: [PATCH] redirects can be to a relative path https://sourceforge.net/p/webadmin/bugs/4672/ --- apache/mod_alias.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apache/mod_alias.pl b/apache/mod_alias.pl index dc9013f12..30963a416 100755 --- a/apache/mod_alias.pl +++ b/apache/mod_alias.pl @@ -37,7 +37,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 = '^(http:\/\/|ftp:\/\/|gopher:|https:\/\/|mailto:|telnet:|\/)(\S+)$'; # alias_status_input(array, name, title) sub alias_status_input