hostname of the virtual host with the prefix ‘<TT>pubsub.</TT>’. The keyword "@HOST@"
is replaced at start time with the real virtual host name.
-If you use <TT>mod_pubsub_odbc</TT>, you can only use the prefix ‘<TT>pubsub.</TT>’.
+If you use <TT>mod_pubsub_odbc</TT>, please ensure the prefix contains only one dot,
+for example ‘<TT>pubsub.</TT>’, or ‘<TT>publish.</TT>’,.
</DD><DT CLASS="dt-description"><B><TT>{access_createnode, AccessName}</TT></B></DT><DD CLASS="dd-description">
This option restricts which users are allowed to create pubsub nodes using
ACL and ACCESS.
Options:
\begin{description}
\hostitem{pubsub}
- If you use \modpubsubodbc, you can only use the prefix `\jid{pubsub.}'.
+ If you use \modpubsubodbc, please ensure the prefix contains only one dot,
+ for example `\jid{pubsub.}', or `\jid{publish.}',.
\titem{\{access\_createnode, AccessName\}} \ind{options!access\_createnode}
This option restricts which users are allowed to create pubsub nodes using
ACL and ACCESS.
odbc_conn({_U, Host, _R})->
Host;
odbc_conn(Host) ->
- Host--"pubsub.". %% TODO, improve that for custom host
+ lists:dropwhile(fun(A) -> A/=$. end, Host) -- ".".
%% escape value for database storage
escape({_U, _H, _R}=JID)->
+odbc_conn({_U, Host, _R})->
+ Host;
+odbc_conn(Host) ->
-+ Host--"pubsub.". %% TODO, improve that for custom host
++ lists:dropwhile(fun(A) -> A/=$. end, Host) -- ".".
+
+%% escape value for database storage
+escape({_U, _H, _R}=JID)->