Merge pull request #2664 from RasmusWL/python-fix-redirect-example

Python: Remove unused variable in example for py/url-redirection
This commit is contained in:
Taus
2020-01-23 13:42:00 +01:00
committed by GitHub
4 changed files with 8 additions and 8 deletions

View File

@@ -4,5 +4,5 @@ app = Flask(__name__)
@app.route('/')
def hello():
target = files = request.args.get('target', '')
target = request.args.get('target', '')
return redirect(target, code=302)

View File

@@ -6,7 +6,7 @@ app = Flask(__name__)
@app.route('/')
def hello():
target = files = request.args.get('target', '')
target = request.args.get('target', '')
if target == VALID_REDIRECT:
return redirect(target, code=302)
else:

View File

@@ -1,7 +1,7 @@
edges
| test.py:7:22:7:33 | dict of externally controlled string | test.py:7:22:7:51 | externally controlled string |
| test.py:7:22:7:33 | dict of externally controlled string | test.py:7:22:7:51 | externally controlled string |
| test.py:7:22:7:51 | externally controlled string | test.py:8:21:8:26 | externally controlled string |
| test.py:7:22:7:51 | externally controlled string | test.py:8:21:8:26 | externally controlled string |
| test.py:7:14:7:25 | dict of externally controlled string | test.py:7:14:7:43 | externally controlled string |
| test.py:7:14:7:25 | dict of externally controlled string | test.py:7:14:7:43 | externally controlled string |
| test.py:7:14:7:43 | externally controlled string | test.py:8:21:8:26 | externally controlled string |
| test.py:7:14:7:43 | externally controlled string | test.py:8:21:8:26 | externally controlled string |
#select
| test.py:8:21:8:26 | target | test.py:7:22:7:33 | dict of externally controlled string | test.py:8:21:8:26 | externally controlled string | Untrusted URL redirection due to $@. | test.py:7:22:7:33 | Attribute | a user-provided value |
| test.py:8:21:8:26 | target | test.py:7:14:7:25 | dict of externally controlled string | test.py:8:21:8:26 | externally controlled string | Untrusted URL redirection due to $@. | test.py:7:14:7:25 | Attribute | a user-provided value |

View File

@@ -4,7 +4,7 @@ app = Flask(__name__)
@app.route('/')
def hello():
target = files = request.args.get('target', '')
target = request.args.get('target', '')
return redirect(target, code=302)