Merge pull request #4392 from erik-krogh/flask

Approved by asgerf
This commit is contained in:
CodeQL CI
2020-10-06 03:41:36 -07:00
committed by GitHub
2 changed files with 8 additions and 1 deletions

View File

@@ -58,3 +58,8 @@ function f() {
<a href="index.html/{{X}}" target="_blank">Example</a>;
<a href="../index.html/{{X}}" target="_blank">Example</a>;
<a href="/{{X}}" target="_blank">Example</a>;
// OK, Flask application with internal links
<a href="{{url_for('foo.html', 'foo')}}" target="_blank">Example</a>;
<a href="{{ url_for('foo.html', 'foo')}}" target="_blank">Example</a>;
<a href="{{ url_for('foo.html', 'foo')}}" target="_blank">Example</a>;