Fix reflected xss. Thanks to Dennis.

This commit is contained in:
Oleg Sh 2022-05-21 16:09:08 +02:00
parent 194715260d
commit 9ea83bf875

View File

@ -6,7 +6,7 @@
$graphName = "";
if (isset($_GET["graph"]))
{
$graphId = $_GET["graph"];
$graphId = preg_replace( '/[\W]/', '', $_GET["graph"]);
$graphSampleListFile = $g_config['graphSavePath'] . $g_config['graphExamplesFile'];