Skip to content

Commit

Permalink
Use Markup for htmlcontent for landing_times (apache#9242)
Browse files Browse the repository at this point in the history
(cherry picked from commit dcf6576)
  • Loading branch information
kaxil authored and Chris Fei committed Mar 5, 2021
1 parent 37e2735 commit 05fe2d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion airflow/www/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2033,7 +2033,7 @@ def landing_times(self, session=None):
return self.render(
'airflow/chart.html',
dag=dag,
chart=chart.htmlcontent,
chart=Markup(chart.htmlcontent),
height=str(chart_height + 100) + "px",
demo_mode=conf.getboolean('webserver', 'demo_mode'),
root=root,
Expand Down
2 changes: 1 addition & 1 deletion airflow/www_rbac/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1898,7 +1898,7 @@ def landing_times(self, session=None):
return self.render_template(
'airflow/chart.html',
dag=dag,
chart=chart.htmlcontent,
chart=Markup(chart.htmlcontent),
height=str(chart_height + 100) + "px",
demo_mode=conf.getboolean('webserver', 'demo_mode'),
root=root,
Expand Down

0 comments on commit 05fe2d9

Please sign in to comment.