aboutsummaryrefslogtreecommitdiff
path: root/src/mod_pubsub
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2009-12-04 16:08:31 +0000
committerBadlop <badlop@process-one.net>2009-12-04 16:08:31 +0000
commit5a006b977dd948db73ae68c52673e277ba2c7905 (patch)
treedc0ff3b68261891b8586834d8368bda742185645 /src/mod_pubsub
parentExplain limitation in the mod_pubsub_odbc host option. (diff)
Small relax the limitation in the mod_pubsub_odbc host option.
SVN Revision: 2781
Diffstat (limited to 'src/mod_pubsub')
-rw-r--r--src/mod_pubsub/mod_pubsub_odbc.erl2
-rw-r--r--src/mod_pubsub/pubsub_odbc.patch2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_pubsub/mod_pubsub_odbc.erl b/src/mod_pubsub/mod_pubsub_odbc.erl
index 910ceda2e..0cbcdf38f 100644
--- a/src/mod_pubsub/mod_pubsub_odbc.erl
+++ b/src/mod_pubsub/mod_pubsub_odbc.erl
@@ -3557,7 +3557,7 @@ transaction_retry(Host, Fun, Trans, Count) ->
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)->
diff --git a/src/mod_pubsub/pubsub_odbc.patch b/src/mod_pubsub/pubsub_odbc.patch
index 9bd66e4f2..5d73dd1ba 100644
--- a/src/mod_pubsub/pubsub_odbc.patch
+++ b/src/mod_pubsub/pubsub_odbc.patch
@@ -760,7 +760,7 @@
+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)->