aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorPim van den Berg2018-12-09 17:08:57 +0100
committerGitHub2018-12-09 17:08:57 +0100
commit72acfcbffd51da1e77a56517618da68252485ed6 (patch)
treed9c5c8bc49fb09baca87389735f2541c654dfe15
parentMerge pull request #162 from Self-Perfection/patch-1 (diff)
parentfunctions.inc.php: escape minus in regex (diff)
downloadapt-panopticon_cgp-72acfcbffd51da1e77a56517618da68252485ed6.zip
apt-panopticon_cgp-72acfcbffd51da1e77a56517618da68252485ed6.tar.gz
apt-panopticon_cgp-72acfcbffd51da1e77a56517618da68252485ed6.tar.bz2
apt-panopticon_cgp-72acfcbffd51da1e77a56517618da68252485ed6.tar.xz
Merge pull request #165 from julianbrost/php7.3-host-regex
functions.inc.php: escape minus in regex
-rw-r--r--inc/functions.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/functions.inc.php b/inc/functions.inc.php
index 77cbe4b..376b6e1 100644
--- a/inc/functions.inc.php
+++ b/inc/functions.inc.php
@@ -34,7 +34,7 @@ function GET($index = NULL, $value = NULL) {
34 case 'h': # host 34 case 'h': # host
35 case 'pi': # plugin instance 35 case 'pi': # plugin instance
36 case 'ti': # type instance 36 case 'ti': # type instance
37 if (!preg_match('/^[\w-.: ]+$/u', $value)) { 37 if (!preg_match('/^[\w\-.: ]+$/u', $value)) {
38 error_log(sprintf('Invalid %s in $_GET["%s"]: "%s"', $desc[$index], $index, $value)); 38 error_log(sprintf('Invalid %s in $_GET["%s"]: "%s"', $desc[$index], $index, $value));
39 return NULL; 39 return NULL;
40 } 40 }