Created
July 27, 2010 21:08
-
-
Save perlDreamer/492863 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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