* URI that comes from c.req.uri must be escaped as Catalyst provides c.req.uri unescaped. * new Catalyst::NGCP::Plugin::EscapeURI with escape_uri() function * new NGCP::Panel::Utils::Generic::escape_uri() that uses URI::Escape::uri::escape_utf8() * c.req.uri and c.req.path occurrences in layout/body.tt are now escaped with c.escape_uri() Change-Id: Id0483fa6e570a0ff8db84b1d470caf5405cc0886mr12.0
parent
5f685fceb8
commit
c826fccb29
@ -0,0 +1,13 @@
|
||||
package Catalyst::Plugin::NGCP::EscapeURI;
|
||||
use warnings;
|
||||
use strict;
|
||||
use MRO::Compat;
|
||||
|
||||
use NGCP::Panel::Utils::Generic qw();
|
||||
|
||||
sub escape_uri {
|
||||
my $c = shift;
|
||||
return NGCP::Panel::Utils::Generic::escape_uri(@_);
|
||||
}
|
||||
|
||||
1;
|
Loading…
Reference in new issue