diff --git a/admin/reports_editor.php b/admin/reports_editor.php index 980e127..712d60c 100644 --- a/admin/reports_editor.php +++ b/admin/reports_editor.php @@ -333,7 +333,7 @@ function createDataTCPDF(x,y,w,h,align,valign,fontname,fontstyle,fontsize,value) /* Do the options */ $x = 0; foreach($report['option'] as $k=>$v) { - echo "\n\t('', LAST_INSERT_ID(), 'option', $x, '$k', '$v', 0, 0, 0, 0, 0, '', ''),"; + echo "\n\t('', LAST_INSERT_ID(), 'option', $x, '$k', '".mysql_real_escape_string($v)."', 0, 0, 0, 0, 0, '', ''),"; $x++; } /* Do the fields */