From 790c45887131271ea922c8aa2de960c60ea617f7 Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Thu, 26 Nov 2015 18:00:50 +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 d902e374dc..64625ce76a 100755 --- 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']; }