diff --git a/src/Utility/InputValidator.php b/src/Utility/InputValidator.php index 047e1b1b2..4ca0324f6 100644 --- a/src/Utility/InputValidator.php +++ b/src/Utility/InputValidator.php @@ -130,6 +130,6 @@ public static function is_valid_rfc2616_token($input) { return false; } - return (preg_match('@^[0-9A-Za-z!#$%&\'*+.^_`|~-]+$@', $input) === 1); + return preg_match('@^[0-9A-Za-z!#$%&\'*+.^_`|~-]+$@', $input) === 1; } }