forked from science-ation/science-ation
A few more missed escapes
This commit is contained in:
parent
1c10dda679
commit
88f1cc7614
@ -354,12 +354,12 @@ foreach($report_stock as $n=>$v) {
|
|||||||
foreach($report[$type] as $k=>$v) {
|
foreach($report[$type] as $k=>$v) {
|
||||||
if($type == 'option') {
|
if($type == 'option') {
|
||||||
/* field, value, x, y, w, h, lines, face, align, valign, fn, fs, fsize, overflow */
|
/* field, value, x, y, w, h, lines, face, align, valign, fn, fs, fsize, overflow */
|
||||||
$vals = "'$k','$v','0','0','0','0','0','','','','','','0','truncate'";
|
$vals = "'".mysql_real_escape_string($k)."','".mysql_real_escape_string($v)."','0','0','0','0','0','','','','','','0','truncate'";
|
||||||
} else {
|
} else {
|
||||||
if($v['lines'] == 0) $v['lines'] =1;
|
if($v['lines'] == 0) $v['lines'] =1;
|
||||||
$fs = is_array($v['fontstyle']) ? implode(',',$v['fontstyle']) : '';
|
$fs = is_array($v['fontstyle']) ? implode(',',$v['fontstyle']) : '';
|
||||||
$opts = "{$v['align']} {$v['valign']}";
|
$opts = "{$v['align']} {$v['valign']}";
|
||||||
$vals = "'{$v['field']}','{$v['value']}',
|
$vals = "'{$v['field']}','".mysql_real_escape_string($v['value'])."',
|
||||||
'{$v['x']}','{$v['y']}','{$v['w']}',
|
'{$v['x']}','{$v['y']}','{$v['w']}',
|
||||||
'{$v['h']}','{$v['lines']}','{$v['face']}',
|
'{$v['h']}','{$v['lines']}','{$v['face']}',
|
||||||
'$opts','{$v['valign']}',
|
'$opts','{$v['valign']}',
|
||||||
|
Loading…
Reference in New Issue
Block a user