25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Use string() version of UserName and UserHost.

PR:		EJABP-1

SVN Revision: 1839
This commit is contained in:
Jean-Sébastien Pédron 2009-01-21 13:30:18 +00:00
parent cdbb000638
commit 2f1397c50e
2 changed files with 5 additions and 2 deletions

View File

@ -6,6 +6,9 @@
* src/cyrsasl.erl: Return invalid-mechanism when a mechanism isn't * src/cyrsasl.erl: Return invalid-mechanism when a mechanism isn't
supported instead of no-mechanism, which wasn't standard-compliant. supported instead of no-mechanism, which wasn't standard-compliant.
* src/mod_pubsub/nodetree_virtual.erl (create_node/5): Use string()
version of UserName and UserHost.
2009-01-19 Pablo Polvorin <pablo.polvorin@process-one.net> 2009-01-19 Pablo Polvorin <pablo.polvorin@process-one.net>
* src/cyrsasl_digest.erl: Typo (prolists -> proplists). * src/cyrsasl_digest.erl: Typo (prolists -> proplists).

View File

@ -130,8 +130,8 @@ get_subnodes_tree(_Host, _Node) ->
%% is considered as already created.</p> %% is considered as already created.</p>
%% <p>default allowed nodes: /home/host/user/any/node/name</p> %% <p>default allowed nodes: /home/host/user/any/node/name</p>
create_node(_Host, Node, _Type, Owner, _Options) -> create_node(_Host, Node, _Type, Owner, _Options) ->
UserName = Owner#jid.lnode, UserName = exmpp_jid:lnode_as_list(Owner),
UserHost = Owner#jid.ldomain, UserHost = exmpp_jid:ldomain_as_list(Owner),
case Node of case Node of
["home", UserHost, UserName | _] -> {error, 'conflict'}; ["home", UserHost, UserName | _] -> {error, 'conflict'};
_ -> {error, 'not-allowed'} _ -> {error, 'not-allowed'}