Set a max-height on bbcode pictures.
This commit is contained in:
parent
9c739e1062
commit
8d5b49b0e8
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ final class ImageTag extends BBCodeTag
|
||||||
{
|
{
|
||||||
return preg_replace_callback("/\[img\]((?:https?:\/\/).+?)\[\/img\]/", function ($matches) {
|
return preg_replace_callback("/\[img\]((?:https?:\/\/).+?)\[\/img\]/", function ($matches) {
|
||||||
$mediaUrl = proxy_media_url($matches[1]);
|
$mediaUrl = proxy_media_url($matches[1]);
|
||||||
return sprintf('<img src="%s" alt="%s" style="max-width:100%%;max-height:100%%;">', $mediaUrl, $matches[1]);
|
return sprintf('<img src="%s" alt="%s" style="max-width:100%%;max-height:900px;">', $mediaUrl, $matches[1]);
|
||||||
}, $text);
|
}, $text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue