You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just tried to create a dynamic wallpaper and I constantly got a corrupted file after save ('Corrupted file' error message on re-open).
After some investigation, I noticed that the culprit is an image with a & in its name. Opening the resulting XML, I saw the & is not escaped, thus creating a corrupted XML file.
Hi,
I just tried to create a dynamic wallpaper and I constantly got a corrupted file after save ('Corrupted file' error message on re-open).
After some investigation, I noticed that the culprit is an image with a
&
in its name. Opening the resulting XML, I saw the&
is not escaped, thus creating a corrupted XML file.I think you need an escape mechanism (maybe just
xml.sax.saxutils.escape(data, entities={})
) when exporting to XML. And of course, unescape on load.I don't know if it has some border effects but if you think it's OK, I can provide a PR.
Thank you for this editor!
The text was updated successfully, but these errors were encountered: