summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2014-11-17 16:26:43 -0200
committerSilvio <silvio@socioambiental.org>2014-11-17 16:26:43 -0200
commit5489f3ca59c90db936b5c751bb580cf148141d40 (patch)
tree34d7bae0e9593ab2bb7e29c60db55e49f0502bcc
parent2a9a1e7982245f48a51a36a6c02242f34d4e6324 (diff)
downloadtimelinejs-5489f3ca59c90db936b5c751bb580cf148141d40.tar.gz
timelinejs-5489f3ca59c90db936b5c751bb580cf148141d40.tar.bz2
Run check_plain() on date format
-rw-r--r--timelinejs.module2
1 files changed, 1 insertions, 1 deletions
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';