[shotwell] Escape file names in wallpaper.xml
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell] Escape file names in wallpaper.xml
- Date: Sat, 8 Jul 2017 06:18:12 +0000 (UTC)
commit 10f1cb78a3c9933cf8be56d6e71b2e4ae8086c73
Author: Jens Georg <mail jensge org>
Date: Sat Jul 8 08:09:56 2017 +0200
Escape file names in wallpaper.xml
https://bugzilla.gnome.org/show_bug.cgi?id=784661
src/DesktopIntegration.vala | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/DesktopIntegration.vala b/src/DesktopIntegration.vala
index 89ff556..80e8b2e 100644
--- a/src/DesktopIntegration.vala
+++ b/src/DesktopIntegration.vala
@@ -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");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]