mirror of
https://github.com/UnickSoft/graphonline.git
synced 2025-07-03 08:15:38 +00:00
Fix reflected xss. Thanks to Dennis.
This commit is contained in:
parent
194715260d
commit
9ea83bf875
@ -6,7 +6,7 @@
|
|||||||
$graphName = "";
|
$graphName = "";
|
||||||
if (isset($_GET["graph"]))
|
if (isset($_GET["graph"]))
|
||||||
{
|
{
|
||||||
$graphId = $_GET["graph"];
|
$graphId = preg_replace( '/[\W]/', '', $_GET["graph"]);
|
||||||
|
|
||||||
$graphSampleListFile = $g_config['graphSavePath'] . $g_config['graphExamplesFile'];
|
$graphSampleListFile = $g_config['graphSavePath'] . $g_config['graphExamplesFile'];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user