Skip to content

Commit

Permalink
bbcode svg-img support
Browse files Browse the repository at this point in the history
  • Loading branch information
sheepish authored and Spine committed Apr 7, 2024
1 parent 3bfab2f commit 9c139f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/text.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,7 @@ private static function to_html(array $Array, bool $Rules, bool $cache, CacheBuc
$Str .= '<a rel="noreferrer" target="_blank" href="' . $Block['Val'] . '">' . $Block['Val'] . '</a> (image)';
break;
}
if (!self::valid_url($Block['Val'], '\.(?:jpe?g|gif|png|bmp|tiff)')) {
if (!self::valid_url($Block['Val'], '\.(?:jpe?g|gif|png|bmp|tiff|webp|svg)')) {
$Str .= "[img]{$Block['Val']}[/img]";
} else {
$LocalURL = self::local_url($Block['Val']);
Expand Down

0 comments on commit 9c139f2

Please sign in to comment.