View | Details | Raw Unified | Return to bug 44070 | Differences between
and this patch

Collapse All | Expand All

(-)a/management/univention-web/debian/changelog (+6 lines)
 Lines 1-3    Link Here 
1
univention-web (1.0.42-7) unstable; urgency=medium
2
3
  * Bug #44070: Recognize GIF as image type
4
5
 -- Alexander Kläser <klaeser@univention.de>  Fri, 31 Mar 2017 01:46:22 +0200
6
1
univention-web (1.0.42-6) unstable; urgency=medium
7
univention-web (1.0.42-6) unstable; urgency=medium
2
8
3
  * Bug #32037: Fix alignment of grid buttons in tile view and
9
  * Bug #32037: Fix alignment of grid buttons in tile view and
(-)a/management/univention-web/js/widgets/Image.js (-1 / +3 lines)
 Lines 66-71   define([ Link Here 
66
			if (this.value.indexOf('iVBORw0KGg') === 0) {
66
			if (this.value.indexOf('iVBORw0KGg') === 0) {
67
				return 'png';
67
				return 'png';
68
			}
68
			}
69
			if (this.value.indexOf('R0lGODdh') === 0 || this.value.indexOf('R0lGODlh') === 0) {
70
				return 'gif';
71
			}
69
			// check whether file starts with '<svg', '<SVG', '<xml', or '<XML'...
72
			// check whether file starts with '<svg', '<SVG', '<xml', or '<XML'...
70
			// as simple check that should work for most cases
73
			// as simple check that should work for most cases
71
			if (this.value.indexOf('PHN2Z') === 0 || this.value.indexOf('PFNWR') === 0 || this.value.indexOf('PFhNT') || this.value.indexOf('PHhtb')) {
74
			if (this.value.indexOf('PHN2Z') === 0 || this.value.indexOf('PFNWR') === 0 || this.value.indexOf('PFhNT') || this.value.indexOf('PHhtb')) {
72
- 

Return to bug 44070