Remove not needed utils

This commit is contained in:
Brahim Hadriche committed 2023-01-22 21:40:11 -05:00
1 parent 9848c2a31a
commit ee29d7a4b3
5 files changed
+7 -25

No files matched your search

@@ -28,7 +28,7 @@ namespace Http
path_in_route = request.route.Mid(router.route.Len())
decoded_path = WebUtils.UrlUnescape(path_in_route)
decoded_path = path_in_route.DecodeUri()
full_path = PathJoin(router.root, decoded_path)
path = CreateObject("roPath", full_path)
@@ -142,7 +142,7 @@ namespace Http
listing = listing + "<title>" + response.settings.ServerName + "</title>" + UnixNL()
listing = listing + "</head>" + UnixNL()
listing = listing + "<body>" + UnixNL()
listing = listing + "<h1>" + WebUtils.URLUnescape(request.uri) + "</h1>" + UnixNL()
listing = listing + "<h1>" + request.uri.DecodeUri() + "</h1>" + UnixNL()
listing = listing + "<tt><pre>" + UnixNL()
dir = path.getString()
@@ -34,8 +34,8 @@ namespace Http
if request.query["token"] <> invalid and request.query["referer"] <> invalid
' Token is encoded twice for some reason
token = WebUtils.UrlUnescape(request.query["token"]).DecodeUriComponent()
referer = WebUtils.UrlUnescape(request.query["referer"])
token = request.query["token"].DecodeUri().DecodeUriComponent()
referer = request.query["referer"].DecodeUri()
InvidiousSettings.SetAuthToken(token, referer)
server.task.top.login = true
end if