summaryrefslogtreecommitdiff
path: root/src/stringprep/uni_norm.c
diff options
context:
space:
mode:
authorAndreas Köhler <andreas.koehler@1und1.de>2010-11-05 15:44:22 +0100
committerBadlop <badlop@process-one.net>2010-11-10 15:40:01 +0100
commit510fd8cf73f220720827bf72a973813f1f4252ba (patch)
treea2bbb7f9a63a562cfec07353b697a7505adf9d99 /src/stringprep/uni_norm.c
parentRemove dead code for NS_VCARD iq packets from ejabberd_c2s (diff)
Before forwarding last activity requests to a user, check that the user's presence is visible for From
According to XEP-0012, 4. Online User Query, "if the requesting entity is not authorized to view the user's presence information (normally via a presence subscription as defined in XMPP IM), the user's server MUST NOT deliver the IQ-get to an available resource but instead MUST return a <forbidden/> error in response to the last activity request." So check for a subscription of from of the jid and bare jid and whether outgoing presences to From are allowed. Fixes problem 3 of EJAB-1158.
Diffstat (limited to 'src/stringprep/uni_norm.c')
0 files changed, 0 insertions, 0 deletions