From 4dd3181b3d8d2ceb58c2fb844d276f9008455e90 Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Mon, 22 Jun 2015 10:30:54 +0200 Subject: inc/functions: a plugin/type instance may contain a dot Closes #123 --- inc/functions.inc.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'inc/functions.inc.php') diff --git a/inc/functions.inc.php b/inc/functions.inc.php index 9e56868..9c36dce 100644 --- a/inc/functions.inc.php +++ b/inc/functions.inc.php @@ -32,6 +32,8 @@ function GET($index = NULL, $value = NULL) { switch($index) { case 'h': # host + case 'pi': # plugin instance + case 'ti': # type instance if (!preg_match('/^[\w-.]+$/u', $value)) { error_log(sprintf('Invalid %s in $_GET["%s"]: "%s"', $desc[$index], $index, $value)); return NULL; @@ -45,13 +47,6 @@ function GET($index = NULL, $value = NULL) { return NULL; } break; - case 'pi': # plugin instance - case 'ti': # type instance - if (!preg_match('/^[\w-]+$/u', $value)) { - error_log(sprintf('Invalid %s in $_GET["%s"]: "%s"', $desc[$index], $index, $value)); - return NULL; - } - break; case 's': # seconds case 'x': # x-axis case 'y': # y-axis -- cgit v1.1