mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 00:07:44 +02:00
[ticket/17176] Limit characters for bbcode uid
PHPBB3-17176
This commit is contained in:
@@ -1056,7 +1056,8 @@ class parse_message extends bbcode_firstpass
|
||||
function __construct($message = '')
|
||||
{
|
||||
// Init BBCode UID
|
||||
$this->bbcode_uid = substr(base_convert(unique_id(), 16, 36), 0, BBCODE_UID_LEN);
|
||||
$unique_id = preg_replace('/[^0-9a-f]/', '', unique_id());
|
||||
$this->bbcode_uid = substr(base_convert($unique_id, 16, 36), 0, BBCODE_UID_LEN);
|
||||
$this->message = $message;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user