mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Token [Class]: Update for PHP 8.1
This commit is contained in:
@@ -75,7 +75,7 @@ class token {
|
||||
* @var string $key
|
||||
* @var string $value
|
||||
*/
|
||||
public function validate($key, $value = null) {
|
||||
public function validate($key, $value = '') {
|
||||
|
||||
//allow only specific characters
|
||||
$key = preg_replace('[^a-zA-Z0-9]', '', $key);
|
||||
|
||||
Reference in New Issue
Block a user