You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2019/08/29 20:39:30 UTC

[GitHub] [airflow] mik-laj commented on a change in pull request #5952: [AIRFLOW-5348] Escape chart Label when set via JS

mik-laj commented on a change in pull request #5952: [AIRFLOW-5348] Escape chart Label when set via JS
URL: https://github.com/apache/airflow/pull/5952#discussion_r319261604
 
 

 ##########
 File path: airflow/www/templates/airflow/nvd3.html
 ##########
 @@ -162,7 +162,7 @@ <h4 class="panel-title">
           $('#chart_body').html('<div class="alert alert-danger">' + payload.error + '</div>');
         }
         $("#sql_panel_body").html(payload.sql_html);
-        $("#label").html(payload.label);
+        $("#label").html(escapeHTML(payload.label));
 
 Review comment:
   ```suggestion
           $("#label").text(payload.label);
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services