From: ivan Date: Sun, 17 Jan 2010 06:40:39 +0000 (+0000) Subject: fix for selfservice_server-base_url without a trailing / X-Git-Tag: root_of_svc_elec_features~533 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=6761bf9c4057314c1afc502e54b18a77407fc08b fix for selfservice_server-base_url without a trailing / --- diff --git a/FS/FS/ClientAPI/MasonComponent.pm b/FS/FS/ClientAPI/MasonComponent.pm index 76d406c45..20b4e5bdb 100644 --- a/FS/FS/ClientAPI/MasonComponent.pm +++ b/FS/FS/ClientAPI/MasonComponent.pm @@ -109,6 +109,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 = '';