mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/13993] Do not parse signatures as posts when editing them.
The implementation of PHPBB3-12516 changed the manual use of the message parser to using generate_text_for_storage(). The function does not support parse_message::parse()'s mode parameter, thus all the error checks on the sig are invalid. PHPBB3-13993
This commit is contained in:
@@ -518,7 +518,20 @@ class ucp_profile
|
||||
}
|
||||
|
||||
$bbcode_uid = $bbcode_bitfield = $bbcode_flags = '';
|
||||
$warn_msg = generate_text_for_storage($signature, $bbcode_uid, $bbcode_bitfield, $bbcode_flags, $enable_bbcode, $enable_urls, $enable_smilies);
|
||||
$warn_msg = generate_text_for_storage(
|
||||
$signature,
|
||||
$bbcode_uid,
|
||||
$bbcode_bitfield,
|
||||
$bbcode_flags,
|
||||
$enable_bbcode,
|
||||
$enable_urls,
|
||||
$enable_smilies,
|
||||
$config['allow_sig_img'],
|
||||
$config['allow_sig_flash'],
|
||||
true,
|
||||
$config['allow_sig_links'],
|
||||
'sig'
|
||||
);
|
||||
|
||||
if (sizeof($warn_msg))
|
||||
{
|
||||
|
Reference in New Issue
Block a user