-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dict-iter-without-items
- Loading branch information
Showing
143 changed files
with
4,319 additions
and
1,154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
crates/ruff_linter/resources/test/fixtures/flake8_bandit/S308.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from django.utils.safestring import mark_safe | ||
|
||
|
||
def some_func(): | ||
return mark_safe('<script>alert("evil!")</script>') | ||
|
||
|
||
@mark_safe | ||
def some_func(): | ||
return '<script>alert("evil!")</script>' | ||
|
||
|
||
from django.utils.html import mark_safe | ||
|
||
|
||
def some_func(): | ||
return mark_safe('<script>alert("evil!")</script>') | ||
|
||
|
||
@mark_safe | ||
def some_func(): | ||
return '<script>alert("evil!")</script>' |
Oops, something went wrong.