diff options
author | tomsmeding <tom.smeding@gmail.com> | 2017-06-28 09:43:14 +0200 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2017-06-28 09:43:14 +0200 |
commit | 3a7b9838798a8dfe1c5caee32322ea5ac0cf31da (patch) | |
tree | 186da67e3539d9111a74d173534d4788cc0c39c5 | |
parent | 72cc6f1570a2a829933688142ba3a2f607b13f44 (diff) |
Unescape file paths
-rwxr-xr-x | webserver.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webserver.js b/webserver.js index 3e18b4d..e7978fe 100755 --- a/webserver.js +++ b/webserver.js @@ -102,11 +102,11 @@ app.get("/",function(req,res){ app.get(["/f/univq","/f/univq/*"],cmn.authgen()); app.get("/f/*",function(req,res){ - requestFile(req,res,makeUrlSafe(req,2)); + requestFile(req,res,unescape(makeUrlSafe(req,2))); }); app.get("/.well-known/*",function(req,res){ - requestFile(req,res,"/well-known"+makeUrlSafe(req,12)); + requestFile(req,res,"/well-known"+unescape(makeUrlSafe(req,12))); }); ["o","k","rip","rip2"].forEach(function(target){ |