This commit is contained in:
Mateusz Gruszczyński committed 2026-10-05 09:30:21 +02:00
1 parent 1dea7f55c8
commit c819f0a335
151 files changed
+7610 -4264

No files matched your search

+8 -1
View File
@@ -50,7 +50,14 @@ mod tests {
routing_path("/static/js//events.js").unwrap(),
"/static/js/events.js"
);
for path in ["/%2e%2e/secret", "/a/%2E%2E/b", "/a%2fb", "/a%5cb", "/bad%", "/bad%2"] {
for path in [
"/%2e%2e/secret",
"/a/%2E%2E/b",
"/a%2fb",
"/a%5cb",
"/bad%",
"/bad%2",
] {
assert!(routing_path(path).is_err(), "{path}");
}
assert_eq!(routing_path("//admin///users").unwrap(), "/admin/users");