X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2FCGI.pm;h=6aca83f7f926e5febc37edbe91f2a637e8dadb9b;hp=f6153761bcbf01c86d0e6bd23bd401611578977e;hb=584e89fb0d4590b4950ae38d392874842e342652;hpb=e283ab567e6890727e4d8e35c1d8097398678753 diff --git a/FS/FS/CGI.pm b/FS/FS/CGI.pm index f6153761b..6aca83f7f 100644 --- a/FS/FS/CGI.pm +++ b/FS/FS/CGI.pm @@ -61,7 +61,7 @@ sub header { - + $title

@@ -214,7 +214,9 @@ Returns current URL with LEVEL levels of path removed from the end (default 0). sub popurl { my($up)=@_; my $cgi = &FS::UID::cgi; - my $url = new URI::URL ( $cgi->isa('Apache') ? $cgi->uri : $cgi->url ); + my $url_string = $cgi->isa('Apache') ? $cgi->uri : $cgi->url; + $url_string =~ s/\?.*//; + my $url = new URI::URL ( $url_string ); my(@path)=$url->path_components; splice @path, 0-$up; $url->path_components(@path);