From e8537a93b2ce1cee4836c016765934df03a1a389 Mon Sep 17 00:00:00 2001 From: reality Date: Mon, 6 May 2013 20:09:19 +0000 Subject: [PATCH] Remove leading slash in url api maker [#435] --- modules/web/web.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/web/web.js b/modules/web/web.js index 25f4997..81a15ed 100644 --- a/modules/web/web.js +++ b/modules/web/web.js @@ -60,12 +60,10 @@ var webInterface = function(dbot) { this.api = { 'getUrl': function(path) { - console.log(path); + if(path.charAt(0) == '/') path = path.substr(1); if(this.config.externalPath) { - console.log('external'); return this.config.externalPath + '/' + path; } else { - console.log('internal'); return 'http://' + this.config.webHost + ':' + this.config.webPort + '/' + path; } }