You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if there is a way to do it right now without modifying the code
what is the rational behing using the \Q and avoiding regexp (i suspect something linked to security reasons)
if it could be possible to add a $ENV parameter for authorizing the use of regexp in the map() something along:
``if ( $ENV{PLACK_URLMAP_ALLOWREGEX} ) {
push @{$self->{_mapping}}, [ $host, $location, qr/^$location/, $app ];
} else {
push @{$self->{_mapping}}, [ $host, $location, qr/^\Q$location\E/, $app ];
}
(happy to provide a real patch if ok in the idea)
Best,
Mathieu
The text was updated successfully, but these errors were encountered:
Hi,
I understand that we cannot currently use regexp in the path when mounting an application, mainly due to:
in: Plack::App::URLMap
I would like to know:
``if ( $ENV{PLACK_URLMAP_ALLOWREGEX} ) {
push @{$self->{_mapping}}, [ $host, $location, qr/^$location/, $app ];
} else {
push @{$self->{_mapping}}, [ $host, $location, qr/^\Q$location\E/, $app ];
}
(happy to provide a real patch if ok in the idea)
Best,
Mathieu
The text was updated successfully, but these errors were encountered: