Software /
code /
prosody
Diff
util/xmppstream.lua @ 4426:ee65aa40ef60
util.dependencies, util.xmppstream: Move LuaExpat version checking to util.dependencies.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Tue, 22 Nov 2011 02:13:42 +0500 |
parent | 4425:6f5ed0f4a3e6 |
child | 4482:722cf2680028 |
line wrap: on
line diff
--- a/util/xmppstream.lua Tue Nov 22 01:44:28 2011 +0500 +++ b/util/xmppstream.lua Tue Nov 22 02:13:42 2011 +0500 @@ -20,13 +20,6 @@ -- COMPAT: w/LuaExpat 1.1.0 local lxp_supports_doctype = pcall(lxp.new, { StartDoctypeDecl = false }); -if not lxp_supports_doctype then - local default_log = require "util.logger".init("xmppstream"); - default_log("warn", "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 module "xmppstream"