# HG changeset patch # User bsw # Date 1427197339 -3600 # Node ID 385a1e369faf4804dc55882ba6942f1d40a92f7f # Parent 65904de98d5eb6b6d68914b7af417677fe6fdd67 Workaround for missing trailing slash in application base path added diff -r 65904de98d5e -r 385a1e369faf config/init.lua --- a/config/init.lua Tue Mar 24 12:36:19 2015 +0100 +++ b/config/init.lua Tue Mar 24 12:42:19 2015 +0100 @@ -73,6 +73,11 @@ if not listen then WEBMCP_BASE_PATH = request.get_app_basepath() + + -- workaround bug in WebMCP 1.2.6 + if not string.find(WEBMCP_BASE_PATH, "/$") then + WEBMCP_BASE_PATH = WEBMCP_BASE_PATH .. "/" + end -- open and set default database handle _G.db = assert(mondelefant.connect(config.database))