From 5489f3ca59c90db936b5c751bb580cf148141d40 Mon Sep 17 00:00:00 2001 From: Silvio Date: Mon, 17 Nov 2014 16:26:43 -0200 Subject: Run check_plain() on date format --- timelinejs.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/timelinejs.module b/timelinejs.module index 61b90fb..65d820d 100644 --- a/timelinejs.module +++ b/timelinejs.module @@ -120,7 +120,7 @@ function timelinejs_fetch_items($nid, $format = 'json') { $nodes = timelinejs_load_events($nid); if (isset($timeline->field_date_format['und'][0]['value'])) { - $date_format = $timeline->field_date_format['und'][0]['value']; + $date_format = check_plain($timeline->field_date_format['und'][0]['value']); } else { $date_format = '%Y,%m,%d'; -- cgit v1.2.3