xmpp-vala: use encoded value when formatting stanza attributes
fixes #140
This commit is contained in:
parent
8bc0d107e7
commit
82a8f5c38d
|
@ -29,12 +29,12 @@ public class StanzaAttribute : StanzaEntry {
|
||||||
|
|
||||||
internal string printf(string fmt, bool no_ns = false, string? ns_name = null) {
|
internal string printf(string fmt, bool no_ns = false, string? ns_name = null) {
|
||||||
if (no_ns) {
|
if (no_ns) {
|
||||||
return fmt.printf(name, (!)val);
|
return fmt.printf(name, (!)encoded_val);
|
||||||
} else {
|
} else {
|
||||||
if (ns_name == null) {
|
if (ns_name == null) {
|
||||||
return fmt.printf((!)ns_uri, name, (!)val);
|
return fmt.printf((!)ns_uri, name, (!)encoded_val);
|
||||||
} else {
|
} else {
|
||||||
return fmt.printf((!)ns_name, name, (!)val);
|
return fmt.printf((!)ns_name, name, (!)encoded_val);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue