Skip to content

Commit

Permalink
Fix unescaped left brace in regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Sabino Mullane committed Mar 5, 2017
1 parent cd6fb9f commit f483bd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/bucardo_rrd
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ push @q, [$db,$query] if defined $query and length $query;
for (@q) {
my ($db,$sql) = @$_;
chomp $sql;
$sql =~ s/ARG{(\w+)}/$ARG->{$1}/ge;
$sql =~ s/ARG\{(\w+)\}/$ARG->{$1}/ge;
$verbose and warn "SQL: -->$sql<--\n";
my $sth = $dbh->{$db}->prepare($sql);
$sth->execute();
Expand Down

0 comments on commit f483bd1

Please sign in to comment.