mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 22:39:26 +01:00
yes yes
This commit is contained in:
parent
7e968d38bb
commit
0d86dc4119
@ -4,6 +4,7 @@ var api = function(dbot) {
|
|||||||
return {
|
return {
|
||||||
'getUrl': function(path) {
|
'getUrl': function(path) {
|
||||||
if(path.charAt(0) == '/') path = path.substr(1);
|
if(path.charAt(0) == '/') path = path.substr(1);
|
||||||
|
path = encodeURIComponent(path);
|
||||||
if(this.config.externalPath) {
|
if(this.config.externalPath) {
|
||||||
return this.config.externalPath + '/' + path;
|
return this.config.externalPath + '/' + path;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user