mirror of
https://github.com/Nezumi-2711/onedrive-vercel-index.git
synced 2026-09-22 13:38:45 +00:00
remove duplicate slashes for auth token path
This commit is contained in:
+1
-1
@@ -90,7 +90,7 @@ export function getAuthTokenPath(path: string) {
|
||||
for (let r of protectedRoutes) {
|
||||
r = r.toLowerCase().replace(/\/$/, '') + '/'
|
||||
if (path.startsWith(r)) {
|
||||
authTokenPath = `${r}/.password`
|
||||
authTokenPath = `${r}.password`
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user