Skip to content

Commit

Permalink
White Screen of Death (WSD) #2848422
Browse files Browse the repository at this point in the history
I posted this issue in dakala#21 that has a patch provided at https://www.drupal.org/node/2848422
  • Loading branch information
pslcbs authored Sep 20, 2017
1 parent 1c5b136 commit 12c59b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fullcalendar_legend/fullcalendar_legend.theme.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Theme functions for FullCalendar Legend.
*/

use Drupal\Component\Utility\String;
use Drupal\Component\Utility\Html;

/**
* Build the legend as a render array.
Expand All @@ -29,7 +29,7 @@ function template_preprocess_fullcalendar_legend(&$variables) {
),
);
// Sanitize the label.
$type['label'] = String::checkPlain($type['label']);
$type['label'] = Html::escape($type['label']);
if (isset($type['uri'])) {
$element[$type_name]['type'] = array(
'#type' => 'link',
Expand Down

0 comments on commit 12c59b0

Please sign in to comment.