Skip to content

Commit

Permalink
Fix double encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
mattab committed Apr 17, 2014
1 parent a75372f commit 8f1d34c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions plugins/CoreVisualizations/JqplotDataGenerator/Chart.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,7 @@ public function setAxisYValues(&$values)
{
foreach ($values as $label => &$data) {
$this->series[] = array(
// unsanitize here is safe since data gets outputted as JSON, not HTML
// NOTE: this is a quick fix for a double-encode issue. if this file is refactored,
// this fix can probably be removed (or at least made more understandable).
'label' => Common::unsanitizeInputValue($label),
'label' => $label,
'internalLabel' => $label
);

Expand Down

0 comments on commit 8f1d34c

Please sign in to comment.