Univention Bugzilla – Bug 45057
Detection of SVG image type in umc/widgets/Image is not entirely correct
Last modified: 2020-06-22 16:09:13 CEST
The following change needs to be applied in order to match SVG images starting with "<xml" or "<XML" correctly: > --- a/management/univention-web/js/widgets/Image.js > +++ b/management/univention-web/js/widgets/Image.js > @@ -71,7 +71,7 @@ define([ > } > // 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')) { > + if (this.value.indexOf('PHN2Z') === 0 || this.value.indexOf('PFNWR') === 0 || this.value.indexOf('PFhNT') === 0 || this.value.indexOf('PHhtb') === 0) { > return 'svg+xml'; > } > return 'unknown';