Skip to content

Commit c50d24c

Browse files
committed
[BUGFIX] Indexing breaks on format not being callable in untrusted context
1 parent c3ff964 commit c50d24c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Configuration/NodeTypes.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
type: date
7777
include_in_all: false
7878
format: 'date_time_no_millis'
79-
indexing: '${(node.hiddenBeforeDateTime ? node.hiddenBeforeDateTime.format("Y-m-d\TH:i:s") + "Z" : null)}'
79+
indexing: '${(node.hiddenBeforeDateTime ? Date.format(node.hiddenBeforeDateTime, "Y-m-d\TH:i:s") + "Z" : null)}'
8080

8181

8282
'_hiddenAfterDateTime':
@@ -85,7 +85,7 @@
8585
type: date
8686
include_in_all: false
8787
format: 'date_time_no_millis'
88-
indexing: '${(node.hiddenAfterDateTime ? node.hiddenAfterDateTime.format("Y-m-d\TH:i:s") + "Z" : null)}'
88+
indexing: '${(node.hiddenAfterDateTime ? Date.format(node.hiddenAfterDateTime, "Y-m-d\TH:i:s") + "Z" : null)}'
8989

9090

9191
'TYPO3.Neos:Document':

0 commit comments

Comments
 (0)