From 83938b3e36f1459bf9453636e1973032bc88322d Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Thu, 26 Nov 2015 17:59:09 +0100 Subject: [PATCH] Fixed problems with security --- pandora_console/include/graphs/fgraph.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandora_console/include/graphs/fgraph.php b/pandora_console/include/graphs/fgraph.php index bc1d5bbdbb..fd008b1b82 100644 --- a/pandora_console/include/graphs/fgraph.php +++ b/pandora_console/include/graphs/fgraph.php @@ -18,6 +18,8 @@ if (isset($_GET['homeurl'])) { } else $homeurl = ''; +$homeurl = ((bool)filter_var($homeurl, FILTER_VALIDATE_URL) == 1) ? '' : $homeurl; + if (isset($_GET['ttl'])) { $ttl = $_GET['ttl']; }