You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have upgraded to new xoops 2.5.11.
There is an issue with the xoops encoded texts like the following:
[color=009900]This text in color[/color]
[size=x-large]Text in large[/size]
The text should be converted to html equivalent like the following:
<span style="color: #009900;">This text in color</span>
<span style="font-size: x-large;">Text in large</span>
This is due to a change in function xoopsCodeDecode class/module.textsanitizer.php.
There are new patterns for [color] and [size], which will not work.
// 2.5.11 not working
$patterns[] = "/\[color=(['\"]?)([a-zA-Z0-9#]*)\\1](.*)\[\/color\]/sU";
$replacements[] = '<span style="color: \\2;">\\3</span>';
$patterns[] = "/\[size=(['\"]?)([a-zA-Z0-9.#]*)\\1](.*)\[\/size\]/sU";
$replacements[] = '<span style="font-size: \\2;">\\3</span>';
I've taken the patterns from the previous 2.5.10 which are working.
// Old one from 2.5.10 works
$patterns[] = "/\[color=(['\"]?)([a-zA-Z0-9]*)\\1](.*)\[\/color\]/sU";
$replacements[] = '<span style="color: #\\2;">\\3</span>';
$patterns[] = "/\[size=(['\"]?)([a-z0-9-]*)\\1](.*)\[\/size\]/sU";
$replacements[] = '<span style="font-size: \\2;">\\3</span>';
The text was updated successfully, but these errors were encountered:
I have upgraded to new xoops 2.5.11.
There is an issue with the xoops encoded texts like the following:
The text should be converted to html equivalent like the following:
This is due to a change in function xoopsCodeDecode class/module.textsanitizer.php.
There are new patterns for [color] and [size], which will not work.
I've taken the patterns from the previous 2.5.10 which are working.
The text was updated successfully, but these errors were encountered: