diff options
author | Matthew Wild <mwild1@gmail.com> | 2014-04-02 17:42:22 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2014-04-02 17:42:22 +0100 |
commit | 499cb87234e01044440591b90c8eb46e63d1e01a (patch) | |
tree | 861eaefae2bd906eace48b17e5f6172dca6c8f5c /util/dependencies.lua | |
parent | c98c0fb432db6ce9c7bbcd433168aa27b36854b8 (diff) | |
parent | 27b4049481f29dcac2d6093c40ad7e8bf1ea8899 (diff) | |
download | prosody-499cb87234e01044440591b90c8eb46e63d1e01a.tar.gz prosody-499cb87234e01044440591b90c8eb46e63d1e01a.zip |
Merge 0.10->trunk
Diffstat (limited to 'util/dependencies.lua')
-rw-r--r-- | util/dependencies.lua | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/util/dependencies.lua b/util/dependencies.lua index 109a3332..9d80d241 100644 --- a/util/dependencies.lua +++ b/util/dependencies.lua @@ -140,7 +140,15 @@ function log_warnings() if not pcall(lxp.new, { StartDoctypeDecl = false }) then log("error", "The version of LuaExpat on your system leaves Prosody " .."vulnerable to denial-of-service attacks. You should upgrade to " - .."LuaExpat 1.1.1 or higher as soon as possible. See " + .."LuaExpat 1.3.0 or higher as soon as possible. See " + .."http://prosody.im/doc/depends#luaexpat for more information."); + end + if not lxp.new({}).getcurrentbytecount then + log("error", "The version of LuaExpat on your system does not support " + .."stanza size limits, which may leave servers on untrusted " + .."networks (e.g. the internet) vulnerable to denial-of-service " + .."attacks. You should upgrade to LuaExpat 1.3.0 or higher as " + .."soon as possible. See " .."http://prosody.im/doc/depends#luaexpat for more information."); end end |