util.filters: Fix inserting items so that higher priority filters run first
[prosody.git] / util / dependencies.lua
index 5baea942af4b52781332af029b0c30e47841219d..53d2719d515829a454ec5bf4f96417ba95f232fd 100644 (file)
@@ -136,6 +136,14 @@ function log_warnings()
                        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;