From e78829db4f57fb197b9c619bc0b145703de675ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Kl=C3=A4ser?= Date: Fri, 31 Mar 2017 01:47:02 +0200 Subject: [PATCH 1/2] Bug #44070: Recognize GIF as image type --- management/univention-web/debian/changelog | 6 ++++++ management/univention-web/js/widgets/Image.js | 3 +++ 2 files changed, 9 insertions(+) diff --git a/management/univention-web/debian/changelog b/management/univention-web/debian/changelog index a37af23..5f44e55 100644 --- a/management/univention-web/debian/changelog +++ b/management/univention-web/debian/changelog @@ -1,3 +1,9 @@ +univention-web (1.0.42-7) unstable; urgency=medium + + * Bug #44070: Recognize GIF as image type + + -- Alexander Kläser Fri, 31 Mar 2017 01:46:22 +0200 + univention-web (1.0.42-6) unstable; urgency=medium * Bug #32037: Fix alignment of grid buttons in tile view and diff --git a/management/univention-web/js/widgets/Image.js b/management/univention-web/js/widgets/Image.js index f7941cc..adb14a5 100644 --- a/management/univention-web/js/widgets/Image.js +++ b/management/univention-web/js/widgets/Image.js @@ -66,6 +66,9 @@ define([ if (this.value.indexOf('iVBORw0KGg') === 0) { return 'png'; } + if (this.value.indexOf('R0lGODdh') === 0 || this.value.indexOf('R0lGODlh') === 0) { + return 'gif'; + } // check whether file starts with '