Skip to content

Commit

Permalink
webui: quote strings with slashes in dashboards index view
Browse files Browse the repository at this point in the history
Strings coming from "translate" function can contain apostrophes
that need to be escaped.

(cherry picked from commit 3c3e227)

Fixes #1235: Special characters not escaped in translations
  • Loading branch information
gnieark authored and fbergkemper committed Aug 3, 2021
1 parent d29b16d commit 680c9e7
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -261,7 +261,7 @@ $this->headTitle($title);
}
else {
$('.running-jobs-container').empty();
$('.running-jobs-container').append('<?php echo $this->translate('There are no jobs running.'); ?>');
$('.running-jobs-container').append('<?php echo addslashes($this->translate('There are no jobs running.')); ?>');
}
},
error: function() {
Expand Down

0 comments on commit 680c9e7

Please sign in to comment.