This is an automated email from the ASF dual-hosted git repository.
kaxilnaik pushed a commit to branch v1-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v1-10-test by this push:
new b006690 Use Markup for htmlcontent for landing_times (#9242)
b006690 is described below
commit b006690fec9dbd8a4c5dca72d93e35d147eaa649
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,