mirror of
https://github.com/restic/rest-server.git
synced 2026-03-30 23:03:18 -07:00
"/" is valid char in HTTP authorization headers, but is also used in rest-server to map usernames to private repos. This commit prevents loading maliciously composed usernames like "/foo/config" by restricting the allowed characters to the unicode character class, numbers, "-", "." and "@". Closes #131