Merge branch 'ent-6278-SQL-Injection-ajax-cg_items' into 'develop'
Solved ajax sql injection Closes pandora_enterprise#6278 See merge request artica/pandorafms!3465
This commit is contained in:
commit
bf1d3f4af3
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
$stacked = db_get_sql('select stacked from tgraph where id_graph = '.$_GET['data']);
|
||||
$num_items = db_get_sql('select count(*) from tgraph_source where id_graph = '.$_GET['data']);
|
||||
$data = (int) get_parameter('data');
|
||||
$stacked = db_get_sql('select stacked from tgraph where id_graph = '.$data);
|
||||
$num_items = db_get_sql('select count(*) from tgraph_source where id_graph = '.$data);
|
||||
echo "$stacked,$num_items";
|
||||
|
|
Loading…
Reference in New Issue