diff options
author | Kim Alvefur <zash@zash.se> | 2016-08-07 20:50:56 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-08-07 20:50:56 +0200 |
commit | e7fdb25beaf6c03b752dc7efe32fa2cde2311bf1 (patch) | |
tree | 0f0268f1685426e19dac824d1e15c378476c99ad /plugins | |
parent | abc0f19d31e6ed3565a31eaa75f0cadf9e48edd0 (diff) | |
download | prosody-e7fdb25beaf6c03b752dc7efe32fa2cde2311bf1.tar.gz prosody-e7fdb25beaf6c03b752dc7efe32fa2cde2311bf1.zip |
mod_c2s: Fix whitespace (why does it keep getting messed up?)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_c2s.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/mod_c2s.lua b/plugins/mod_c2s.lua index e69bf461..71da8773 100644 --- a/plugins/mod_c2s.lua +++ b/plugins/mod_c2s.lua @@ -246,9 +246,9 @@ function listener.onconnect(conn) function session.data(data) -- Parse the data, which will store stanzas in session.pending_stanzas if data then - data = filter("bytes/in", data); - if data then - local ok, err = stream:feed(data); + data = filter("bytes/in", data); + if data then + local ok, err = stream:feed(data); if not ok then log("debug", "Received invalid XML (%s) %d bytes: %s", tostring(err), #data, data:sub(1, 300):gsub("[\r\n]+", " "):gsub("[%z\1-\31]", "_")); session:close("not-well-formed"); |