Permalink
Browse files

Don't allow % in URLs at all.

  • Loading branch information...
1 parent 96addc3 commit 97ab2c8c7fa99f9d6e9fa1eadfd88a506ad3f4d5 @bigpresh bigpresh committed Jul 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Dancer/Plugin/NYTProf.pm
@@ -57,7 +57,7 @@ before sub {
return if $path =~ m{^/nytprof};
$path =~ s{^/}{};
$path =~ s{/}{_s_}g;
- $path =~ s{[^a-z0-9%]}{_}gi;
+ $path =~ s{[^a-z0-9]}{_}gi;
DB::enable_profile(
Dancer::FileUtils::path($setting->{profdir}, "nytprof.out.$path.$$")
);

0 comments on commit 97ab2c8

Please sign in to comment.