diff options
author | ivan <ivan> | 2007-01-21 09:10:46 +0000 |
---|---|---|
committer | ivan <ivan> | 2007-01-21 09:10:46 +0000 |
commit | 28d0e1291b3119b0bef1e1e887676f2c29e35c25 (patch) | |
tree | a402131c302e9d06a80db2c11c0d8c076ae52b52 /FS/FS/CGI.pm | |
parent | bc85a6042dca1848a23623be5d6612e495121da5 (diff) |
fix svc_url to work no matter where we are coming from in the tree - use rooturl() instead of popurl()
Diffstat (limited to 'FS/FS/CGI.pm')
-rw-r--r-- | FS/FS/CGI.pm | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/FS/FS/CGI.pm b/FS/FS/CGI.pm index 88548cd..a85d48a 100644 --- a/FS/FS/CGI.pm +++ b/FS/FS/CGI.pm @@ -239,14 +239,17 @@ sub rooturl { #even though this is kludgy $url_string =~ s{ - (browse|config|docs|edit|graph|misc|search|view|pref) + / + (browse|config|docs|edit|graph|misc|search|view|pref|rt) / (process/)? - ([\w\-\.]+) + ([\w\-\.\/]+) $ } {}x; + $url_string .= '/' unless $url_string =~ /\/$/; + $url_string; } |