This is an automated email from the ASF dual-hosted git repository. potiuk pushed a commit to branch v1-10-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit e22e89d0e60396f2d5e9e2e93fe9a7d9914d1c5c Author: Kaxil Naik <[email protected]> AuthorDate: Fri Jun 12 12:28:26 2020 +0100 Use Markup for htmlcontent for landing_times (#9242) (cherry picked from commit dcf65765e58fb8beba206454075bbd6675b65721) --- airflow/www/views.py | 2 +- airflow/www_rbac/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/airflow/www/views.py b/airflow/www/views.py index 6238f02..9d8e37a 100644 --- a/airflow/www/views.py +++ b/airflow/www/views.py @@ -2022,7 +2022,7 @@ class Airflow(AirflowViewMixin, BaseView): 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, diff --git a/airflow/www_rbac/views.py b/airflow/www_rbac/views.py index 7c601ba..be7a384 100644 --- a/airflow/www_rbac/views.py +++ b/airflow/www_rbac/views.py @@ -1890,7 +1890,7 @@ class Airflow(AirflowBaseView): 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,
