-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Malformed SVG breaks gallery #346
Comments
Thanks :) |
Problems are usually detected on the PHP side, when trying to generate a preview, but it's not the case for SVG and there could be other problems along the road, so we fetch the media type icon in case of failure Fixes #346
So it's actually a general problem. When an image fails to load, it will not be usable later on, so I'm now showing the media type icon, letting the user download the file |
Problems are usually detected on the PHP side, when trying to generate a preview, but it's not the case for SVG and there could be other problems along the road, so we fetch the media type icon in case of failure Fixes #346
Problems are usually detected on the PHP side, when trying to generate a preview, but it's not the case for SVG and there could be other problems along the road, so we fetch the media type icon in case of failure Fixes #346
Problems are usually detected on the PHP side, when trying to generate a preview, but it's not the case for SVG and there could be other problems along the road, so we fetch the media type icon in case of failure Fixes #346
A broken SVG you can use to test: You need to enable native_svg first in your gallery.cnf |
This requires #391 to work properly as SVGs containing an evil payload can still stop the rendering. |
@rperezb @SergioBertolinSG @davitol can you please test? |
@Dianafg76 will take care of this one, I am currently working with her, thx |
Checked, it doesn't break the gallery File used: https://s3.owncloud.com/owncloud/index.php/s/MD4hOi7Fqv9o4WL Server version: ownCloud 8.2 beta1 (daily) Build:2015-10-02T03:39:51+00:00 f891b91cf8475eee16ab1ca08869430bd2dbe51b |
Can't download it? What kind of error are you getting? |
Ummm, on Friday it didn't work, I got a connection error.. Today I have downloaded it, and it works fine, meaning this, the gallery is not broken |
Cool, thanks :) |
A SVG file with invalid SVG breaks a whole gallery album.
The text was updated successfully, but these errors were encountered: