Skip to content

Commit

Permalink
Fix regex problem on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Nov 26, 2019
1 parent 893d281 commit 18e3d14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/FCGI/Buffer.pm
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,6 @@ sub DESTROY {
# Create a static page with the information and link to that in the output
# HTML
if($dbh && $self->{info} && $self->{save_to} && (my $request_uri = $ENV{'REQUEST_URI'})) {
::diag(__LINE__);
my $query = "SELECT DISTINCT creation FROM fcgi_buffer WHERE key = ?";
if($self->{logger}) {
$self->{logger}->debug("$query: $key");
Expand Down Expand Up @@ -1472,7 +1471,8 @@ sub _save_to {
}
$link =~ s/\?/\\?/g;
my $rootdir = $self->{info}->rootdir();
$path =~ s/^$rootdir//;
$path = substr($path, length($rootdir));
::diag(__LINE__, ": $path");
$changes += ($copy =~ s/<a\s+href="$link">/<a href="$path">/gis);
# Find the first link that will expire and use that
if((!defined($creation)) || ($href->{'creation'} < $creation)) {
Expand Down

0 comments on commit 18e3d14

Please sign in to comment.