diff options
author | Marvin W <git@larma.de> | 2017-08-29 17:36:42 +0200 |
---|---|---|
committer | Marvin W <git@larma.de> | 2017-08-29 22:07:38 +0200 |
commit | 82a8f5c38df5abf2848084c8a6743d4d7cd40208 (patch) | |
tree | 6c97a92ac0d1564fa9b6546faa05e8dc06458597 /xmpp-vala/src/core | |
parent | 8bc0d107e740be468ee0c9dcd253de36355088d3 (diff) | |
download | dino-82a8f5c38df5abf2848084c8a6743d4d7cd40208.tar.gz dino-82a8f5c38df5abf2848084c8a6743d4d7cd40208.zip |
xmpp-vala: use encoded value when formatting stanza attributes
fixes #140
Diffstat (limited to 'xmpp-vala/src/core')
-rw-r--r-- | xmpp-vala/src/core/stanza_attribute.vala | 6 |
1 files changed, 3 insertions, 3 deletions
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); } } } |