From 3a7b9838798a8dfe1c5caee32322ea5ac0cf31da Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Wed, 28 Jun 2017 09:43:14 +0200 Subject: Unescape file paths --- webserver.js | 4 ++-- 1 file 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){ -- cgit v1.2.3-70-g09d2