From 40e1e3e6e0e56d299067cd5a09bb4ab6179012ee Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 25 Feb 2004 05:11:10 +0000 Subject: [PATCH] kludge around it completely --- FS/FS/CGI.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/FS/FS/CGI.pm b/FS/FS/CGI.pm index cda32621d..880e4c0b9 100644 --- a/FS/FS/CGI.pm +++ b/FS/FS/CGI.pm @@ -209,8 +209,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); -- 2.20.1