diff --git a/web/root/ecwebv3/pages/002-forum.ssjs b/web/root/ecwebv3/pages/002-forum.ssjs index e00faabe111afb0400d7de9704a0eb34dc96ddaa..be9e59df410f65d6f2cedf1b550f44f58fb6b37f 100644 --- a/web/root/ecwebv3/pages/002-forum.ssjs +++ b/web/root/ecwebv3/pages/002-forum.ssjs @@ -18,28 +18,26 @@ if(typeof http_request.query.board != "undefined") { if(typeof http_request.query.sub != "undefined" && http_request.query.sub != 'mail') { print("<script type='text/javascript'>"); print( - "loadThreads('http://" - + http_request.host - + ":" - + webIni.HTTPPort - + "/forum-async.ssjs', '" - + http_request.query.sub - + "', " - + ((http_request.query.hasOwnProperty('thread'))?false:true) - + ");" + format( + "loadThreads('http://%s:%s%s/forum-async.ssjs', '%s', %s);", + http_request.host, + webIni.HTTPPort, + webIni.appendURL, + http_request.query.sub, + (typeof http_request.query.thread == "undefined") ? true : false + ) ); if(typeof http_request.query.thread != "undefined") { - print("loadThread('http://" - + http_request.host - + ":" - + webIni.HTTPPort - + "/forum-async.ssjs', '" - + http_request.query.sub - + "', '" - + http_request.query.thread - + "', " - + false - + ");" + print( + format( + "loadThread('http://%s:%s%s/forum-async.ssjs', '%s', '%s', %s);", + http_request.host, + webIni.HTTPPort, + webIni.appendURL, + http_request.query.sub, + http_request.query.thread, + false + ) ); } print("</script>");