Mercurial > prosody-hg
comparison plugins/mod_saslauth.lua @ 2395:7d7618c21321
added comment to remind us to fix binary output breaking the terminal
later
| author | jorj@jorj.org |
|---|---|
| date | Wed, 23 Dec 2009 16:45:03 -0500 |
| parents | 521de84113da |
| children | da8d6ab0c8b4 |
comparison
equal
deleted
inserted
replaced
| 2394:a2972f9fda6d | 2395:7d7618c21321 |
|---|---|
| 119 return; -- FIXME ignoring out of order stanzas because ejabberd does | 119 return; -- FIXME ignoring out of order stanzas because ejabberd does |
| 120 end | 120 end |
| 121 local text = stanza[1]; | 121 local text = stanza[1]; |
| 122 if text then | 122 if text then |
| 123 text = base64.decode(text); | 123 text = base64.decode(text); |
| 124 log("debug", "%s", text); | 124 log("debug", "%s", text); -- FIXME: binary output will screw up the terminal |
| 125 if not text then | 125 if not text then |
| 126 session.sasl_handler = nil; | 126 session.sasl_handler = nil; |
| 127 session.send(build_reply("failure", "incorrect-encoding")); | 127 session.send(build_reply("failure", "incorrect-encoding")); |
| 128 return; | 128 return; |
| 129 end | 129 end |
