Token [Class]: Update for PHP 8.1
This commit is contained in:
@@ -75,7 +75,7 @@ class token {
|
|||||||
* @var string $key
|
* @var string $key
|
||||||
* @var string $value
|
* @var string $value
|
||||||
*/
|
*/
|
||||||
public function validate($key, $value = null) {
|
public function validate($key, $value = '') {
|
||||||
|
|
||||||
//allow only specific characters
|
//allow only specific characters
|
||||||
$key = preg_replace('[^a-zA-Z0-9]', '', $key);
|
$key = preg_replace('[^a-zA-Z0-9]', '', $key);
|
||||||
|
|||||||
Reference in New Issue
Block a user