1
0
mirror of https://gitlab.com/depesz/explain.depesz.com.git synced 2025-07-15 01:34:18 +02:00

Make plan encoded in utf8

Thanks to this anonymization will stop breaking when given plans with accents.
This commit is contained in:
Hubert depesz Lubaczewski
2011-08-25 12:43:49 +02:00
parent 96a6bf6f50
commit 84df996971

View File

@ -5,13 +5,14 @@ use Mojo::Base 'Mojolicious::Controller';
use English -no_match_vars;
use Pg::Explain;
use Encode;
use Email::Valid;
sub index {
my $self = shift;
# plan
my $plan = $self->req->param( 'plan' );
my $plan = encode( 'UTF-8', $self->req->param( 'plan' ) );
# nothing to do...
return $self->render unless $plan;