diff options
author | ivan <ivan> | 2010-01-17 06:40:40 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-01-17 06:40:40 +0000 |
commit | b46960ed945fa20378176382a068adc538b3b5c0 (patch) | |
tree | 4ec33075c0bd93ca3f1e0cfe6e1f43585e04d0c1 | |
parent | f2b3bd57f189c837f5c82315e1f6740ab14da1d4 (diff) |
fix for selfservice_server-base_url without a trailing /
-rw-r--r-- | FS/FS/ClientAPI/MasonComponent.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/FS/FS/ClientAPI/MasonComponent.pm b/FS/FS/ClientAPI/MasonComponent.pm index 88baf0764..5c824e762 100644 --- a/FS/FS/ClientAPI/MasonComponent.pm +++ b/FS/FS/ClientAPI/MasonComponent.pm @@ -96,6 +96,7 @@ sub mason_comp { my $conf = new FS::Conf; $FS::Mason::Request::FSURL = $conf->config('selfservice_server-base_url'); + $FS::Mason::Request::FSURL .= '/' unless $FS::Mason::Request::FSURL =~ /\/$/; $FS::Mason::Request::QUERY_STRING = $packet->{'query_string'} || ''; $outbuf = ''; |