From 5b282980ee2f9abe05b05a6616a773f870383db2 Mon Sep 17 00:00:00 2001 From: dave Date: Mon, 10 Dec 2007 03:08:08 +0000 Subject: [PATCH] - Fix the fairname in the sql queries for students and volunteers --- admin/reports_students.inc.php | 2 +- admin/reports_volunteers.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/reports_students.inc.php b/admin/reports_students.inc.php index 8246fc84..f030c050 100644 --- a/admin/reports_students.inc.php +++ b/admin/reports_students.inc.php @@ -398,7 +398,7 @@ $report_students_fields = array( 'name' => 'Fair -- Name', 'header' => 'Fair Name', 'width' => 3, - 'table' => "'{$config['fairname']}'"), + 'table' => "'".mysql_escape_string($config['fairname'])."'"), 'static_text' => array ( 'name' => 'Static Text (useful for labels)', diff --git a/admin/reports_volunteers.inc.php b/admin/reports_volunteers.inc.php index 427d6cdb..045a4a0a 100644 --- a/admin/reports_volunteers.inc.php +++ b/admin/reports_volunteers.inc.php @@ -96,7 +96,7 @@ $report_volunteers_fields = array( 'name' => 'Fair -- Name', 'header' => 'Fair Name', 'width' => 3, - 'table' => "'{$config['fairname']}'"), + 'table' => "'".mysql_escape_string($config['fairname'])."'"), 'static_text' => array ( 'name' => 'Static Text (useful for labels)',