Skip to content
Permalink
Browse files

Plack::Request->path_info includes the query string! Argh.

  • Loading branch information...
perlDreamer committed Mar 12, 2012
1 parent 2fd4f74 commit 5ad34a92662a993a7fc56fdf33bb75c3dfbad070
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/WebGUI/Session/Url.pm
@@ -324,7 +324,9 @@ Returns the URL of the page requested (no gateway, no query params, just the pag
sub getRequestedUrl {
my $self = shift;
unless ($self->{_requestedUrl}) {
$self->{_requestedUrl} = decode_utf8($self->session->request->path_info);
my $path_info = $self->session->request->path_info;
$path_info =~ s/\?.*//;
$self->{_requestedUrl} = decode_utf8($path_info);
}
return $self->{_requestedUrl};
}

0 comments on commit 5ad34a9

Please sign in to comment.
You can’t perform that action at this time.