Use sane default value for embedded media <img>
authorAlexander Ebert <ebert@woltlab.com>
Sun, 8 Apr 2018 15:00:08 +0000 (17:00 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 8 Apr 2018 15:00:08 +0000 (17:00 +0200)
wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeImg.class.php

index 24afe2789bfd791b4d26c10c29af2661f8e21e52..9f3487e1903ea073c139fcbde921a58524d4fdf1 100644 (file)
@@ -133,7 +133,7 @@ class HtmlInputNodeImg extends AbstractHtmlInputNode {
                }
                
                $float = 'none';
-               $thumbnail = null;
+               $thumbnail = 'original';
                
                if (preg_match('~thumbnail=(?P<thumbnail>tiny|small|large|medium)\b~', $element->getAttribute('src'), $matches)) {
                        $thumbnail = $matches['thumbnail'];