phpbb/phpBB/includes
LukeWCS 1f96a2c79a [ticket/17076] Fix signature length calculation
The error occurs when BBcode is used but there is no whitespace. In this case,
a part of the RegEx that is designed to be greedy is responsible for selecting
all BBcode tag containers and their content that do not contain whitespace.
This, in combination with the replace string, effectively reduces the entire
signature to a single space. This is the explanation for the reported behavior
of phpBB.

In addition, the bug also generally prevents the correct removal of BBcode
containers if their content does not contain whitespace. In such cases, the
BBcode tags are removed along with the content, which also results in
incorrect calculation of the text length.

* Changed the corresponding RegEx part from greedy to non-greedy.
* Removed an unnecessary class definition.
* Changed an unnecessary capturing group to a non-capturing group.
* Changed the replace string from a space to an empty string. <- Here,
however, I'm not sure if the space was intentional or not!

PHPBB3-17076
2023-02-01 20:21:37 +01:00
..
acp Merge pull request #6410 from DaRk1V0iD/ticket/16913_3.3.x 2023-01-31 16:50:59 +01:00
diff [ticket/16883] Check if var is array before using count() 2021-10-05 21:07:50 +02:00
hooks [ticket/15849] Stop using php4 constructors 2018-10-21 07:02:26 +00:00
mcp [ticket/17025] Fix MCP move posts topic ID 0 2023-01-22 16:55:39 +08:00
questionnaire [ticket/16981] Fix HTML-encoded emojis in email subject line 2022-04-05 17:18:33 +01:00
ucp [ticket/17003] Small code style adjustmens 2022-07-27 18:17:46 +02:00
utf [ticket/16822] Replace patchwork/utf8 with symfony/polyfill 2021-07-19 22:49:04 +07:00
.htaccess [ticket/16556] Remove purposeless <Files "*"> from .htaccess 2020-09-01 18:19:13 +02:00
bbcode.php Merge branch '3.2.x' into 3.3.x 2020-02-14 07:28:26 +01:00
compatibility_globals.php [ticket/15663] Move constant to compatibility_globals 2019-05-09 18:54:58 +02:00
constants.php [3.3.x] Update versions to 3.3.11-dev 2023-01-13 22:50:09 +01:00
functions.php [ticket/16871] Do not allow negative forum and topic IDs in page_header 2022-04-15 19:58:42 +08:00
functions_acp.php [ticket/16858] Update jQuery to 3.6.0 2021-08-27 04:25:41 +02:00
functions_admin.php [ticket/16899] Add SVG and WEBP image type to ranks, smilies and topic icons 2021-10-21 21:48:14 +02:00
functions_compatibility.php [ticket/16981] Fix HTML-encoded emojis in email subject line 2022-04-05 17:18:33 +01:00
functions_compress.php Merge branch '3.2.x' into 3.3.x 2020-02-15 16:46:02 +01:00
functions_content.php [ticket/16981] Fix HTML-encoded emojis in email subject line 2022-04-05 17:18:33 +01:00
functions_convert.php [ticket/16851] Add Amazonbot, AhrefsBot and SemrushBot 2021-08-25 14:46:37 +02:00
functions_database_helper.php [ticket/12594] Remove @package tags and update file headers 2014-05-27 20:51:13 +02:00
functions_display.php Merge pull request #5760 from v12mike/ticket/16138 2021-08-23 20:11:35 +02:00
functions_download.php [ticket/16981] Fix HTML-encoded emojis in email subject line 2022-04-05 17:18:33 +01:00
functions_jabber.php [ticket/security-265] Add better checks for empty or not set data 2020-11-04 16:36:53 +01:00
functions_mcp.php [ticket/16904] Fix regression in MCP for topics selection 2021-11-02 13:55:39 +07:00
functions_messenger.php [ticket/17058] Add $encode_eol to process() 2022-11-11 23:15:09 +01:00
functions_module.php [ticket/16904] Fix regression in MCP for topics selection 2021-11-02 13:55:39 +07:00
functions_posting.php [ticket/17081] Fix accept attribute in upload input 2023-01-06 04:29:32 +01:00
functions_privmsgs.php [ticket/16550] Fix undefined variable url in PMs 2020-07-21 10:03:00 +02:00
functions_transfer.php [ticket/16188] Remove some legacy code and fix bug 2019-11-01 10:30:41 +00:00
functions_user.php [ticket/16981] Fix HTML-encoded emojis in email subject line 2022-04-05 17:18:33 +01:00
index.htm
message_parser.php [ticket/17076] Fix signature length calculation 2023-02-01 20:21:37 +01:00
sphinxapi.php [ticket/15849] Stop using php4 constructors 2018-10-21 07:02:26 +00:00
startup.php [ticket/16916] Include PHP version number in startup/install error 2022-07-04 21:12:43 -05:00