Skip to content

Commit

Permalink
Fix for XOOPS#1458
Browse files Browse the repository at this point in the history
  • Loading branch information
mambax7 committed Mar 28, 2024
1 parent 56846c4 commit b458fae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions htdocs/class/module.textsanitizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,9 @@ public function &xoopsCodeDecode(&$text, $allowimage = 1)
$replacements[] = '<a href="\\2" rel="external" title="">\\3</a>';
$patterns[] = "/\[url=(['\"]?)([^'\"<>]*)\\1](.*)\[\/url\]/sU";
$replacements[] = '<a href="http://\\2" rel="noopener external" title="">\\3</a>';
$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";
$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>';
$patterns[] = "/\[font=(['\"]?)([^;<>\*\(\)\"']*)\\1](.*)\[\/font\]/sU";
$replacements[] = '<span style="font-family: \\2;">\\3</span>';
Expand Down

0 comments on commit b458fae

Please sign in to comment.