From cf12c8376411ed65c44fa873401c2f006b43f28f Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Sat, 4 Jul 2015 12:45:29 +0200 Subject: inc/functions: a host, pi and ti may contain colons (:) and spaces ( ) For example: "CPU Interface : 1" (snmp plugin + hp1810g switch) --- inc/functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc/functions.inc.php') diff --git a/inc/functions.inc.php b/inc/functions.inc.php index 9c36dce..55807d4 100644 --- a/inc/functions.inc.php +++ b/inc/functions.inc.php @@ -34,7 +34,7 @@ function GET($index = NULL, $value = NULL) { case 'h': # host case 'pi': # plugin instance case 'ti': # type instance - if (!preg_match('/^[\w-.]+$/u', $value)) { + if (!preg_match('/^[\w-.: ]+$/u', $value)) { error_log(sprintf('Invalid %s in $_GET["%s"]: "%s"', $desc[$index], $index, $value)); return NULL; } -- cgit v1.1