Skip to content

Instantly share code, notes, and snippets.

@perlDreamer
Created July 27, 2010 21:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save perlDreamer/492863 to your computer and use it in GitHub Desktop.
Save perlDreamer/492863 to your computer and use it in GitHub Desktop.
diff --git a/lib/WebGUI/Session/Url.pm b/lib/WebGUI/Session/Url.pm
index a963e38..628055f 100644
--- a/lib/WebGUI/Session/Url.pm
+++ b/lib/WebGUI/Session/Url.pm
@@ -21,6 +21,7 @@ use URI::Escape;
use Scalar::Util qw( weaken );
use WebGUI::International;
use WebGUI::Utility;
+use Encode;
=head1 NAME
@@ -323,7 +324,7 @@ sub getRequestedUrl {
my $self = shift;
return undef unless ($self->session->request);
unless ($self->{_requestedUrl}) {
- $self->{_requestedUrl} = $self->session->request->uri;
+ $self->{_requestedUrl} = decode_utf8($self->session->request->uri);
my $gateway = $self->session->config->get("gateway");
$self->{_requestedUrl} =~ s/^$gateway([^?]*)\??.*$/$1/;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment