• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed regex missing 2nd underscore in XenForo_Helper_String::bbCodeStrip

Bob

Well-known member
#1
as per title,

Currently missing an underscore in the 2nd instance of a-z0-9
PHP:
$parts = preg_split('#(\[[a-z0-9_]+(?:=[^\]]*)?\]|\[/[a-z0-9]+\])#si', $string, -1, PREG_SPLIT_DELIM_CAPTURE);
should be
PHP:
$parts = preg_split('#(\[[a-z0-9_]+(?:=[^\]]*)?\]|\[/[a-z0-9_]+\])#si', $string, -1, PREG_SPLIT_DELIM_CAPTURE);