[shotwell] publishers: Properly escape urlencoded payload



commit 7dc86b74c8a4cd251fb8815a818a206cd7a0d6b0
Author: Jens Georg <mail jensge org>
Date:   Sat Feb 10 21:12:32 2018 +0100

    publishers: Properly escape urlencoded payload
    
    https://bugzilla.gnome.org/show_bug.cgi?id=718742

 plugins/common/RESTSupport.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/common/RESTSupport.vala b/plugins/common/RESTSupport.vala
index d92c264..6a766b5 100644
--- a/plugins/common/RESTSupport.vala
+++ b/plugins/common/RESTSupport.vala
@@ -151,7 +151,7 @@ public class Argument {
     }
 
     public string to_string (bool escape = false) {
-        return "%s=%s%s%s".printf (this.key, escape ? "\"" : "", this.value, escape ? "\"" : "");
+        return "%s=%s%s%s".printf (Uri.escape_string (this.key), escape ? "\"" : "", Uri.escape_string 
(this.value), escape ? "\"" : "");
     }
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]