summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-08-13 14:34:12 +0200
committerAleksander Machniak <alec@alec.pl>2014-08-13 14:37:15 +0200
commitef4e6b9aedb7ffd058220de2d8ab2b44b1447d00 (patch)
treeb7f00b8eb735709da0b05f03a59d927747e582cb
parent7cf65245906408dfdb004d17359a6c1aaa1f4ef9 (diff)
Cleanup after PR merge, updated changelog
-rw-r--r--CHANGELOG1
-rw-r--r--program/lib/Roundcube/rcube_image.php4
2 files changed, 3 insertions, 2 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 31c62e529..853f38e11 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -9,6 +9,7 @@ CHANGELOG Roundcube Webmail
- Fix various iCloud vCard issues, added fallback for external photos (#1489993)
- Fix invalid Content-Type header when send_format_flowed=false (#1489992)
- Fix errors when adding/updating contacts in active search (#1490015)
+- Fix incorrect thumbnail rotation with GD and exif orientation data (#1490029)
RELEASE 1.0.2
-------------
diff --git a/program/lib/Roundcube/rcube_image.php b/program/lib/Roundcube/rcube_image.php
index 565e9db0e..122b5f48a 100644
--- a/program/lib/Roundcube/rcube_image.php
+++ b/program/lib/Roundcube/rcube_image.php
@@ -206,10 +206,10 @@ class rcube_image
$image = $new_image;
// fix rotation of image if EXIF data exists and specifies rotation (GD strips the EXIF data)
- if ($this->image_file && function_exists(exif_read_data) ) {
+ if ($this->image_file && function_exists('exif_read_data')) {
$exif = exif_read_data($this->image_file);
if ($exif && $exif['Orientation']) {
- switch($exif['Orientation']) {
+ switch ($exif['Orientation']) {
case 3:
$image = imagerotate($image, 180, 0);
break;