Skip to content

Commit a531ebf

Browse files
authored
Merge pull request #16 from BetterMint/alert-autofix-7
Potential fix for code scanning alert no. 7: Incomplete URL substring sanitization
2 parents a23cfc5 + fb4882c commit a531ebf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/contrib/webscanner_helper/test_urlinjection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,4 +124,4 @@ def test_init(self, tmpdir):
124124
assert fltr(f)
125125
assert "http://example.com:80" not in str(f.response.content)
126126
url_injection.response(f)
127-
assert "http://example.com:80" in str(f.response.content)
127+
assert "<loc>http://example.com:80/</loc>" in str(f.response.content)

0 commit comments

Comments
 (0)