View | Details | Raw Unified | Return to bug 23390
Collapse All | Expand All

(-)a/reports/guided_reports.pl (-1 / +1 lines)
Lines 1085-1090 sub get_prepped_report { Link Here
1085
        my ($type,$name) = split /\|/,$split[$i*2+1]; # We split them on '|'
1085
        my ($type,$name) = split /\|/,$split[$i*2+1]; # We split them on '|'
1086
        $headers->{$name} = $type; # Store as a lookup for the template
1086
        $headers->{$name} = $type; # Store as a lookup for the template
1087
        $split[$i*2+1] =~ s/(\||\?|\.|\*|\(|\)|\%)/\\$1/g; #Quote any special characters so we can replace the placeholders
1087
        $split[$i*2+1] =~ s/(\||\?|\.|\*|\(|\)|\%)/\\$1/g; #Quote any special characters so we can replace the placeholders
1088
        $name = C4::Context->dbh->quote($name);
1088
        $sql =~ s/\[\[$split[$i*2+1]\]\]/$type AS $name/; # Remove placeholders from SQL
1089
        $sql =~ s/\[\[$split[$i*2+1]\]\]/$type AS $name/; # Remove placeholders from SQL
1089
    }
1090
    }
1090
1091
1091
- 

Return to bug 23390