[BUGFIX] Avatar generates wrong HTML 45/44545/2
authorWouter Wolters <typo3@wouterwolters.nl>
Thu, 5 Nov 2015 07:47:43 +0000 (08:47 +0100)
committerBenni Mack <benni@typo3.org>
Thu, 5 Nov 2015 08:08:10 +0000 (09:08 +0100)
No space between attributes.

Resolves: #71334
Releases: master
Change-Id: I5b785467a74569194e7268df6199710379c7635e
Reviewed-on: https://review.typo3.org/44545
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/backend/Classes/Backend/Avatar/Avatar.php

index bc7986c..57e15f3 100644 (file)
@@ -82,7 +82,7 @@ class Avatar
         $avatarImage = $this->getImage($backendUser, $size);
 
         if ($avatarImage) {
-            $imageTag = '<img src="' . htmlspecialchars($avatarImage->getUrl(true)) . '"' .
+            $imageTag = '<img src="' . htmlspecialchars($avatarImage->getUrl(true)) . '" ' .
                 'width="' . (int)$avatarImage->getWidth() . '" ' .
                 'height="' . (int)$avatarImage->getHeight() . '" />';
         }