Skip to content

Commit 75566c9

Browse files
committed
Update the list of allowed PHP functions
1 parent fbf7842 commit 75566c9

File tree

1 file changed

+2
-27
lines changed

1 file changed

+2
-27
lines changed

docs/view/template-modifiers.md

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -202,40 +202,29 @@ The exact formatting depends on the current language (via the language items `wc
202202
A limited number of safe native PHP functions may also be used as variable modifiers:
203203

204204
* `abs`
205-
* `addslashes`
206-
* `array_diff`
207-
* `array_fill`
208205
* `array_key_exists`
209206
* `array_keys`
210207
* `array_pop`
211-
* `array_slice`
212208
* `array_values`
213209
* `base64_decode`
214210
* `base64_encode`
215211
* `basename`
216212
* `ceil`
217213
* `concat`
218-
* `constant`
219214
* `count`
220215
* `currency`
221216
* `current`
222217
* `date`
223218
* `defined`
224-
* `doubleval`
225219
* `empty`
226220
* `end`
227221
* `explode`
228-
* `file_exists`
229222
* `filesize`
230223
* `floatval`
231224
* `floor`
232225
* `function_exists`
233226
* `get_class`
234227
* `gmdate`
235-
* `hash`
236-
* `htmlspecialchars`
237-
* `html_entity_decode`
238-
* `http_build_query`
239228
* `implode`
240229
* `in_array`
241230
* `is_array`
@@ -247,12 +236,9 @@ A limited number of safe native PHP functions may also be used as variable modif
247236
* `intval`
248237
* `is_subclass_of`
249238
* `isset`
250-
* `json_encode`
251239
* `key`
252-
* `lcfirst`
253240
* `ltrim`
254241
* `max`
255-
* `mb_strpos`
256242
* `mb_strlen`
257243
* `mb_strpos`
258244
* `mb_strtolower`
@@ -262,9 +248,6 @@ A limited number of safe native PHP functions may also be used as variable modif
262248
* `method_exists`
263249
* `microtime`
264250
* `min`
265-
* `nl2br`
266-
* `number_format`
267-
* `parse_url`
268251
* `preg_match`
269252
* `preg_replace`
270253
* `print_r`
@@ -274,26 +257,18 @@ A limited number of safe native PHP functions may also be used as variable modif
274257
* `round`
275258
* `sha1`
276259
* `spl_object_hash`
277-
* `sprintf`
278260
* `strip_tags`
279261
* `strlen`
280-
* `strpos`
281-
* `strtolower`
282-
* `strtotime`
283-
* `strtoupper`
284262
* `str_contains`
285263
* `str_ends_with`
286-
* `str_ireplace`
287-
* `str_pad`
288264
* `str_repeat`
289265
* `str_replace`
290266
* `str_starts_with`
267+
* `strtolower`
268+
* `strtoupper`
291269
* `substr`
292270
* `trim`
293271
* `ucfirst`
294-
* `uniqid`
295-
* `urlencode`
296272
* `var_dump`
297273
* `version_compare`
298274
* `wcfDebug`
299-
* `wordwrap`

0 commit comments

Comments
 (0)