Univention Bugzilla – Attachment 8719 Details for
Bug 44070
Portal does not show .png files as logos for entries
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Detect GIF magic number
0001-Bug-44070-Recognize-GIF-as-image-type.patch (text/plain), 1.64 KB, created by
Alexander Kläser
on 2017-03-31 01:52:07 CEST
(
hide
)
Description:
Detect GIF magic number
Filename:
MIME Type:
Creator:
Alexander Kläser
Created:
2017-03-31 01:52:07 CEST
Size:
1.64 KB
patch
obsolete
>From e78829db4f57fb197b9c619bc0b145703de675ad Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Alexander=20Kl=C3=A4ser?= <klaeser@univention.de> >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 <klaeser@univention.de> 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 '<svg', '<SVG', '<xml', or '<XML'... > // as simple check that should work for most cases > if (this.value.indexOf('PHN2Z') === 0 || this.value.indexOf('PFNWR') === 0 || this.value.indexOf('PFhNT') || this.value.indexOf('PHhtb')) { >-- >2.7.4 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 44070
:
8639
|
8718
| 8719 |
8720