@@ -25,7 +25,7 @@ |
||
| 25 | 25 | // https://stackoverflow.com/questions/6058394/unicode-character-in-php-string |
| 26 | 26 | |
| 27 | 27 | // RegEx: https://regex101.com/r/yS2zX8/3 |
| 28 | - return preg_replace_callback('/(\\\\u([0-9a-fA-F]{4}))+/', function ($match) { |
|
| 28 | + return preg_replace_callback('/(\\\\u([0-9a-fA-F]{4}))+/', function($match) { |
|
| 29 | 29 | return json_decode('"' . $match[0] . '"'); |
| 30 | 30 | }, $string); |
| 31 | 31 | } |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | public static function getOldestPossibleReplayAttackDate() |
| 58 | 58 | { |
| 59 | 59 | /** @var XenForo_Options $options */ |
| 60 | - $options = XenForo_Application::getOptions(); |
|
| 60 | + $options = XenForo_Application::getOptions(); |
|
| 61 | 61 | /** @var int $rejectOlDefault the default maximum age of a message according*/ |
| 62 | 62 | $rejectOlDefault = strtotime('-14 days', XenForo_Application::$time); |
| 63 | 63 | /* @var int $rejectOld the maximum age of a message according to the options */ |