Skip to content

Commit

Permalink
Bugfix: don't strip the %'s we just added.
Browse files Browse the repository at this point in the history
  • Loading branch information
bigpresh committed Jul 23, 2011
1 parent 61b6c70 commit 8dea6b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Dancer/Plugin/NYTProf.pm
Expand Up @@ -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.$$")
);
Expand Down

0 comments on commit 8dea6b3

Please sign in to comment.