fix: server test
This commit is contained in:
parent
c918601b0a
commit
526ae1608f
1 changed files with 3 additions and 3 deletions
|
|
@ -504,9 +504,9 @@ class TestResponse(FrappeAPITestCase):
|
||||||
expected_redirects = {
|
expected_redirects = {
|
||||||
"/app/user": "http://localhost/app/user",
|
"/app/user": "http://localhost/app/user",
|
||||||
"/app/user?enabled=1": "http://localhost/app/user?enabled=1",
|
"/app/user?enabled=1": "http://localhost/app/user?enabled=1",
|
||||||
"http://example.com": "http://localhost/app", # No external redirect
|
"http://example.com": "http://localhost/desk", # No external redirect
|
||||||
"https://google.com": "http://localhost/app",
|
"https://google.com": "http://localhost/desk",
|
||||||
"http://localhost:8000": "http://localhost/app",
|
"http://localhost:8000": "http://localhost/desk",
|
||||||
"http://localhost/app": "http://localhost/app",
|
"http://localhost/app": "http://localhost/app",
|
||||||
"////example.com": "http://localhost//example.com", # malicious redirect attempt
|
"////example.com": "http://localhost//example.com", # malicious redirect attempt
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue