Skip to content

Commit

Permalink
Fixes failing test_views tests (#14599)
Browse files Browse the repository at this point in the history
This reverts commit 49952e7.

Not sure what happended. We made that change because of cPython
vulnerability (https://github.com/python/cpython/pull/24297/files)
in #14341

I am not sure what happened here but this should fix the Master.
  • Loading branch information
kaxil committed Mar 4, 2021
1 parent f5a35f4 commit 061cd23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/www/test_views.py
Expand Up @@ -2778,7 +2778,7 @@ def test_trigger_dag_form(self):
("http://google.com", "/home"),
(
"%2Ftree%3Fdag_id%3Dexample_bash_operator';alert(33)//",
"/tree?dag_id=example_bash_operator%27%3Balert%2833%29%2F%2F",
"/tree?dag_id=example_bash_operator%27&alert%2833%29%2F%2F=",
),
("%2Ftree%3Fdag_id%3Dexample_bash_operator", "/tree?dag_id=example_bash_operator"),
("%2Fgraph%3Fdag_id%3Dexample_bash_operator", "/graph?dag_id=example_bash_operator"),
Expand Down Expand Up @@ -3321,7 +3321,7 @@ class TestHelperFunctions(TestBase):
(
"http://localhost:8080/trigger?dag_id=test_dag&origin=%2Ftree%3Fdag_id%test_dag';alert(33)//",
"http://localhost:8080/trigger?dag_id=test_dag&origin=%2Ftree%3F"
"dag_id%25test_dag%27%3Balert%2833%29%2F%2F",
"dag_id%25test_dag%27&alert%2833%29%2F%2F=",
),
(
"http://localhost:8080/trigger?dag_id=test_dag&origin=%2Ftree%3Fdag_id%test_dag",
Expand Down

0 comments on commit 061cd23

Please sign in to comment.