Fix unquoted regex as per RT#24951
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Engine / CGI.pm
index de9fe2d..f9f9fa8 100644 (file)
@@ -123,7 +123,7 @@ sub prepare_path {
     my $base_path;
     if ( exists $ENV{REDIRECT_URL} ) {
         $base_path = $ENV{REDIRECT_URL};
-        $base_path =~ s/$ENV{PATH_INFO}$//;
+        $base_path =~ s/\Q$ENV{PATH_INFO}\E$//;
     }
     else {
         $base_path = $script_name || '/';