diff --git a/circ/overdue.pl b/circ/overdue.pl index bc8a28d39f..e50bc15766 100755 --- a/circ/overdue.pl +++ b/circ/overdue.pl @@ -223,6 +223,13 @@ if ($noreport) { $bornamefilter =~s/\*/\%/g; $bornamefilter =~s/\?/\_/g; + #scape single quote + $bornamefilter =~s/'/\\'/g; + $itemtypefilter =~s/'/\\'/g; + $borcatfilter =~s/'/\\'/g; + $holdingbranchfilter =~s/'/\\'/g; + $homebranchfilter =~s/'/\\'/g; + $branchfilter =~s/'/\\'/g; my $strsth="SELECT date_due, borrowers.title as borrowertitle,