From 177ca1018b3c479e612397a5fd7c1264fcb961a4 Mon Sep 17 00:00:00 2001 From: Kayou Date: Sun, 19 Jan 2020 22:46:20 +0700 Subject: [PATCH] Fix remove last char --- helpers.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers.lua b/helpers.lua index fd45715..0005c1a 100644 --- a/helpers.lua +++ b/helpers.lua @@ -289,7 +289,7 @@ function has_access(user) end if string.ends(url, "/") then - url = string.sub(url, 1, -1) + url = string.sub(url, 1, -2) end if string.starts(ngx.var.host..ngx.var.uri, url) then