Skip to content

Commit

Permalink
inc/functions.inc.php: add double quote for whitelist
Browse files Browse the repository at this point in the history
Signed-off-by: Conrad Kostecki <[email protected]>
  • Loading branch information
ConiKost committed Sep 23, 2019
1 parent fd8fa70 commit aec5ed4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/functions.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit aec5ed4

Please sign in to comment.