xmpp-vala: use encoded value when formatting stanza attributes

fixes #140
This commit is contained in:
Marvin W 2017-08-29 17:36:42 +02:00
parent 8bc0d107e7
commit 82a8f5c38d
No known key found for this signature in database
GPG key ID: 072E9235DB996F2A

View file

@ -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);
}
}
}