From 47442aa20e3a4738708249618caf3c32fbea07bb Mon Sep 17 00:00:00 2001 From: cel Date: Mon, 24 Sep 2018 19:36:47 -1000 Subject: Handle unencoded web links --- lib/serve.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/serve.js b/lib/serve.js index 951daea..f825ed7 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -2873,7 +2873,9 @@ Serve.prototype.zip = function (url) { Serve.prototype.web = function (url) { var self = this - var id = decodeURIComponent(url.substr(1)) + var id = url.substr(1) + try { id = decodeURIComponent(id) } + catch(e) {} var components = url.split('/') if (components[0] === '') components.shift() -- cgit v1.2.3