diff options
author | Matthew Wild <mwild1@gmail.com> | 2015-03-24 16:03:37 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2015-03-24 16:03:37 +0000 |
commit | 6abbc2ab5823a10e33b1fd33b0b9e8466f7922fe (patch) | |
tree | 0fb821888bdf5853562e778aae685f8c3d7de944 /plugins/mod_s2s/mod_s2s.lua | |
parent | a5e6058fdad58e1dcd564fa04d4d5128a6dbc30c (diff) | |
download | prosody-6abbc2ab5823a10e33b1fd33b0b9e8466f7922fe.tar.gz prosody-6abbc2ab5823a10e33b1fd33b0b9e8466f7922fe.zip |
mod_s2s: to/from attributes are required on s2s stream headers. Set them to '' when not available. Fixes #468.
Diffstat (limited to 'plugins/mod_s2s/mod_s2s.lua')
-rw-r--r-- | plugins/mod_s2s/mod_s2s.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_s2s/mod_s2s.lua b/plugins/mod_s2s/mod_s2s.lua index d8846a6f..f5297efe 100644 --- a/plugins/mod_s2s/mod_s2s.lua +++ b/plugins/mod_s2s/mod_s2s.lua @@ -512,7 +512,7 @@ function session_open_stream(session, from, to) version = session.version and (session.version > 0 and "1.0" or nil), ["xml:lang"] = 'en', id = session.streamid, - from = from, to = to, + from = from or "", to = to or "", } if not from or (hosts[from] and hosts[from].modules.dialback) then attr["xmlns:db"] = 'jabber:server:dialback'; |