Commit 10f1cb78 authored by Jens Georg's avatar Jens Georg

Escape file names in wallpaper.xml

https://bugzilla.gnome.org/show_bug.cgi?id=784661
parent 0caab9a4
......@@ -215,15 +215,15 @@ private class BackgroundSlideshowXMLBuilder {
private void write_transition(File from, File to) throws Error {
outs.put_string(" <transition>\n");
outs.put_string(" <duration>%2.2f</duration>\n".printf(transition));
outs.put_string(" <from>%s</from>\n".printf(from.get_path()));
outs.put_string(" <to>%s</to>\n".printf(to.get_path()));
outs.put_string(" <from>%s</from>\n".printf(Markup.escape_text(from.get_path())));
outs.put_string(" <to>%s</to>\n".printf(Markup.escape_text(to.get_path())));
outs.put_string(" </transition>\n");
}
private void write_static(File file) throws Error {
outs.put_string(" <static>\n");
outs.put_string(" <duration>%2.2f</duration>\n".printf(duration));
outs.put_string(" <file>%s</file>\n".printf(file.get_path()));
outs.put_string(" <file>%s</file>\n".printf(Markup.escape_text(file.get_path())));
outs.put_string(" </static>\n");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment