Koha/reports
Chris Nighswonger 860f1f70e5 kohabug 2458 Disallowing non-SELECT SQL in reports module
This patch enforces SELECT-only SQL in the reports module.
It introduces code to check SQL in two places. The first is
when a save is attempted on a user constructed SQL statement.
If a non-SELECT SQL statement is entered, the user will be
presented with an error message and a button giving the
option of editing the SQL. The second is when any SQL is
executed. If execution of a non-SELECT SQL statement is
attempted, the user is presented with an error message and
instructed to delete that report as the SQL is invalid.

The second check is intended as a safety net as no non-SELECT
SQL should ever be saved.

It may be well to document the proper usage of the direct SQL
entry type report.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2008-08-08 10:52:34 -05:00
..
acquisitions_stats.pl kohabug 2345: bad comparisons pervade reports 2008-07-27 06:11:08 -05:00
bor_issues_top.pl kohabug 2345: bad comparisons pervade reports 2008-07-27 06:11:08 -05:00
borrowers_out.pl kohabug 2345: bad comparisons pervade reports 2008-07-27 06:11:08 -05:00
borrowers_stats.pl kohabug 2345: bad comparisons pervade reports 2008-07-27 06:11:08 -05:00
cat_issues_top.pl kohabug 2345: bad comparisons pervade reports 2008-07-27 06:11:08 -05:00
catalogue_out.pl Total overhaul of broken "Items with no checkouts" report. 2008-07-10 09:11:32 -05:00
catalogue_stats.pl kohabug 2345: bad comparisons pervade reports 2008-07-27 06:11:08 -05:00
dictionary.pl kohabug 1679 & 1680 Fixes date formatting in guided reports wizard 2008-08-04 15:26:49 -05:00
guided_reports.pl kohabug 2458 Disallowing non-SELECT SQL in reports module 2008-08-08 10:52:34 -05:00
issues_avg_stats.pl kohabug 2345: bad comparisons pervade reports 2008-07-27 06:11:08 -05:00
issues_by_borrower_category.plugin
issues_stats.pl Report cleanup - fix highlight, add debugging feedback 2008-07-12 08:59:38 -05:00
itemslost.pl
itemtypes.plugin Fix 'Catalog by Itemtype' report to work with item-level itypes 2008-07-25 08:49:45 -05:00
manager.pl
reports-home.pl
reservereport.pl
stats.print.pl
stats.screen.pl