diff --git a/webapp/server.js b/webapp/server.js index 5898cdc..a5a0139 100644 --- a/webapp/server.js +++ b/webapp/server.js @@ -387,7 +387,21 @@ app.get('/', function (req, res) { if (req.query.date) selected_date_s = req.query.date if (req.query.msg != undefined) { ret += "
\n"; - ret += "" + querystring.parse(req.query.msg) + "
\n"; + + //ret += "" + querystring.parse(req.query.msg) + "
\n"; + // line above causes: + //TypeError: Cannot convert object to primitive value + //at /home/owner/git/EnlivenMinetest/webapp/server.js:390:16 + //at Layer.handle [as handle_request] (/home/owner/git/EnlivenMinetest/webapp/node_modules/express/lib/router/layer.js:95:5) + //at next (/home/owner/git/EnlivenMinetest/webapp/node_modules/express/lib/router/route.js:137:13) + //at Route.dispatch (/home/owner/git/EnlivenMinetest/webapp/node_modules/express/lib/router/route.js:112:3) + //at Layer.handle [as handle_request] (/home/owner/git/EnlivenMinetest/webapp/node_modules/express/lib/router/layer.js:95:5) + //at /home/owner/git/EnlivenMinetest/webapp/node_modules/express/lib/router/index.js:281:22 + //at Function.process_params (/home/owner/git/EnlivenMinetest/webapp/node_modules/express/lib/router/index.js:335:12) + //at next (/home/owner/git/EnlivenMinetest/webapp/node_modules/express/lib/router/index.js:275:10) + //at expressInit (/home/owner/git/EnlivenMinetest/webapp/node_modules/express/lib/middleware/init.js:40:5) + //at Layer.handle [as handle_request] (/home/owner/git/EnlivenMinetest/webapp/node_modules/express/lib/router/layer.js:95:5) + ret += "
\n"; } ret += "assuming minetestserver ran as: " + os.homedir() + "
\n";