mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 20:12:07 +01:00
Parse xml-not-well-formed as not-well-formed
for backwards compatibility. SMACK-400
This commit is contained in:
parent
47ced860ec
commit
1d83db898e
1 changed files with 5 additions and 0 deletions
|
@ -264,6 +264,11 @@ public class XMPPError extends AbstractError {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Condition fromString(String string) {
|
public static Condition fromString(String string) {
|
||||||
|
// Backwards compatibility for older implementations still using RFC 3920. RFC 6120
|
||||||
|
// changed 'xml-not-well-formed' to 'not-well-formed'.
|
||||||
|
if ("xml-not-well-formed".equals(string)) {
|
||||||
|
string = "not-well-formed";
|
||||||
|
}
|
||||||
string = string.replace('-', '_');
|
string = string.replace('-', '_');
|
||||||
Condition condition = null;
|
Condition condition = null;
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue