Skip to content

Commit

Permalink
Prosody compatibility: allow empty incoming 'iq.from' if 'iq.to' was …
Browse files Browse the repository at this point in the history
…self jid
  • Loading branch information
Ri0n committed Jun 5, 2024
1 parent e8efe0b commit 40c0d7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xmpp/xmpp-im/xmpp_task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ bool Task::iqVerify(const QDomElement &x, const Jid &to, const QString &id, cons
// empty 'from' ?
if (from.isEmpty()) {
// allowed if we are querying the server
if (!to.isEmpty() && !to.compare(server))
if (!to.isEmpty() && !to.compare(local, false) && !to.compare(server))
return false;
}
// from ourself?
Expand Down

0 comments on commit 40c0d7e

Please sign in to comment.