You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ka...@apache.org on 2020/11/19 19:48:21 UTC

[airflow] branch v1-10-test updated: URL encode execution date in the Last Run link (#10595)

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 8d2803d  URL encode execution date in the Last Run link (#10595)
8d2803d is described below

commit 8d2803d87a9ce23caf22db0fef32cb37670cfe8d
Author: Alex Begg <al...@gmail.com>
AuthorDate: Thu Aug 27 04:07:05 2020 -0700

    URL encode execution date in the Last Run link (#10595)
    
    Fixes #10434
---
 airflow/www_rbac/templates/airflow/dags.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/airflow/www_rbac/templates/airflow/dags.html b/airflow/www_rbac/templates/airflow/dags.html
index 8e867b5..6ae3f50 100644
--- a/airflow/www_rbac/templates/airflow/dags.html
+++ b/airflow/www_rbac/templates/airflow/dags.html
@@ -366,7 +366,7 @@
         last_run = json[safe_dag_id].last_run;
         g = d3.select('div#last-run-' + safe_dag_id)
         g.selectAll('a')
-          .attr("href", "{{ url_for('Airflow.graph') }}?dag_id=" + encodeURIComponent(dag_id) + "&execution_date=" + last_run)
+          .attr("href", "{{ url_for('Airflow.graph') }}?dag_id=" + encodeURIComponent(dag_id) + "&execution_date=" + encodeURIComponent(last_run))
           .insert(isoDateToTimeEl.bind(null, last_run, {title: false}));
         g.selectAll('span')
           // We don't translate the timezone in the tooltip, that stays in UTC.