Mercurial > prosody-hg
diff util/dependencies.lua @ 4797:e239668aa6d2
Merge 0.9->trunk
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Sun, 29 Apr 2012 02:10:55 +0100 |
| parents | ee65aa40ef60 |
| children | bd0ff8ae98a8 29d2dd705148 |
line wrap: on
line diff
--- a/util/dependencies.lua Sun Apr 29 02:09:12 2012 +0100 +++ b/util/dependencies.lua Sun Apr 29 02:10:55 2012 +0100 @@ -136,6 +136,14 @@ log("error", "This version of LuaSec contains a known bug that causes disconnects, see http://prosody.im/doc/depends"); end end + if lxp then + 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 " + .."http://prosody.im/doc/depends#luaexpat for more information."); + end + end end return _M;
