From 82a8f5c38df5abf2848084c8a6743d4d7cd40208 Mon Sep 17 00:00:00 2001 From: Marvin W Date: Tue, 29 Aug 2017 17:36:42 +0200 Subject: xmpp-vala: use encoded value when formatting stanza attributes fixes #140 --- xmpp-vala/src/core/stanza_attribute.vala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xmpp-vala') diff --git a/xmpp-vala/src/core/stanza_attribute.vala b/xmpp-vala/src/core/stanza_attribute.vala index ea776110..86fb426e 100644 --- a/xmpp-vala/src/core/stanza_attribute.vala +++ b/xmpp-vala/src/core/stanza_attribute.vala @@ -29,12 +29,12 @@ public class StanzaAttribute : StanzaEntry { internal string printf(string fmt, bool no_ns = false, string? ns_name = null) { if (no_ns) { - return fmt.printf(name, (!)val); + return fmt.printf(name, (!)encoded_val); } else { if (ns_name == null) { - return fmt.printf((!)ns_uri, name, (!)val); + return fmt.printf((!)ns_uri, name, (!)encoded_val); } else { - return fmt.printf((!)ns_name, name, (!)val); + return fmt.printf((!)ns_name, name, (!)encoded_val); } } } -- cgit v1.2.3-54-g00ecf