summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--FS/FS/CGI.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/FS/FS/CGI.pm b/FS/FS/CGI.pm
index a85d48ab6..c91c01fd0 100644
--- a/FS/FS/CGI.pm
+++ b/FS/FS/CGI.pm
@@ -237,6 +237,8 @@ sub rooturl {
$url_string =~ s/\?.*//;
#even though this is kludgy
+ $url_string =~ s{ / index\.html /? $ }
+ {/}x;
$url_string =~
s{
/