diff options
| author | Silvio <silvio@socioambiental.org> | 2014-11-17 16:26:43 -0200 |
|---|---|---|
| committer | Silvio <silvio@socioambiental.org> | 2014-11-17 16:26:43 -0200 |
| commit | 5489f3ca59c90db936b5c751bb580cf148141d40 (patch) | |
| tree | 34d7bae0e9593ab2bb7e29c60db55e49f0502bcc | |
| parent | 2a9a1e7982245f48a51a36a6c02242f34d4e6324 (diff) | |
| download | timelinejs-5489f3ca59c90db936b5c751bb580cf148141d40.tar.gz timelinejs-5489f3ca59c90db936b5c751bb580cf148141d40.tar.bz2 | |
Run check_plain() on date format
| -rw-r--r-- | timelinejs.module | 2 |
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'; |
