Reformatted code

This commit is contained in:
Michael 2023-03-06 06:15:30 +00:00
parent aea3ed4548
commit 699be97ea1
2 changed files with 7 additions and 15 deletions

View file

@ -870,8 +870,7 @@ class BBCode
$attributes[$field] = html_entity_decode($matches[2] ?? '', ENT_QUOTES, 'UTF-8');
}
$img_str = '<img src="' .
self::proxyUrl($match[2], $simplehtml, $uriid) . '"';
$img_str = '<img src="' . self::proxyUrl($match[2], $simplehtml, $uriid) . '"';
foreach ($attributes as $key => $value) {
if (!empty($value)) {
$img_str .= ' ' . $key . '="' . htmlspecialchars($value, ENT_COMPAT) . '"';