mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Solved ajax sql injection
This commit is contained in:
parent
21b3a5ad2a
commit
1258a1a635
@ -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…
x
Reference in New Issue
Block a user