X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2FCGI.pm;h=a3286299bce0f6ea36b2a072f5b995a0d901ee4b;hp=86121f02e16abe3cef5806f6ec93d26163e10b58;hb=08feb6698a96eed199404b8319a39ec4c02a084e;hpb=0952f0a9264d575752393a0be1a3d3c6480f96ed diff --git a/FS/FS/CGI.pm b/FS/FS/CGI.pm index 86121f02e..a3286299b 100644 --- a/FS/FS/CGI.pm +++ b/FS/FS/CGI.pm @@ -61,7 +61,7 @@ sub header { - + $title

@@ -214,8 +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 ); - $url->query(''); + 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);