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)',