view plugins/sql.lib.lua @ 7058:e9f07febafb3

mod_http_files: Santize the path relative to our base URL before translating it to a filesystem path, fixes a relative path traversal vulnerability
author Matthew Wild <mwild1@gmail.com>
date Thu, 07 Jan 2016 15:37:47 +0000
parents 9916f0a2d178
children
line wrap: on
line source

local cache = module:shared("/*/sql.lib/util.sql");

if not cache._M then
	prosody.unlock_globals();
	cache._M = require "util.sql";
	prosody.lock_globals();
end

return cache._M;