]> granicus.if.org Git - ejabberd/commitdiff
Fix Xref from 5dcc97c
authorChristophe Romain <christophe.romain@process-one.net>
Thu, 3 Aug 2017 12:54:06 +0000 (14:54 +0200)
committerChristophe Romain <christophe.romain@process-one.net>
Thu, 3 Aug 2017 12:54:06 +0000 (14:54 +0200)
src/mod_pubsub.erl

index 9f2c66aaa4e358af4661e2671d95920e8731c80e..4cbb22750041e919056a5584b16c1657c3f12af3 100644 (file)
@@ -3933,7 +3933,7 @@ export(_Server) ->
                               owners = Owners,
                               options = Options}) ->
               HOST = case Hostid of
-                    {U,S,R} -> ejabberd_sql:escape(jlib:jid_to_string({U,S,R}));
+                    {U,S,R} -> ejabberd_sql:escape(jid:encode({U,S,R}));
                     _ -> ejabberd_sql:escape(Hostid)
                     end,
               NODE = ejabberd_sql:escape(Nodeid),
@@ -3949,7 +3949,7 @@ export(_Server) ->
                            io_lib:format("~p", [Val]), "');\n"] || {Name,Val} <- Options],
                ?SQL("delete from pubsub_node_owner where nodeid=%(Id)d;"),
                [["insert into pubsub_node_owner(nodeid,owner)\n"
-                 " values (", IdB, ", '", jlib:jid_to_string(Usr), "');\n"] || Usr <- Owners],"\n"];
+                 " values (", IdB, ", '", jid:encode(Usr), "');\n"] || Usr <- Owners],"\n"];
          (_Host, _R) ->
               []
       end}].