From: Alexander Ebert Date: Mon, 18 Nov 2024 09:41:58 +0000 (+0100) Subject: Update the list of allowed PHP functions X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=75566c91a3bd5994e242deaf44f191c61e87bd62;p=GitHub%2FWoltLab%2Fwoltlab.github.io.git Update the list of allowed PHP functions --- diff --git a/docs/view/template-modifiers.md b/docs/view/template-modifiers.md index 3f70d79b..eb4079a5 100644 --- a/docs/view/template-modifiers.md +++ b/docs/view/template-modifiers.md @@ -202,40 +202,29 @@ The exact formatting depends on the current language (via the language items `wc A limited number of safe native PHP functions may also be used as variable modifiers: * `abs` -* `addslashes` -* `array_diff` -* `array_fill` * `array_key_exists` * `array_keys` * `array_pop` -* `array_slice` * `array_values` * `base64_decode` * `base64_encode` * `basename` * `ceil` * `concat` -* `constant` * `count` * `currency` * `current` * `date` * `defined` -* `doubleval` * `empty` * `end` * `explode` -* `file_exists` * `filesize` * `floatval` * `floor` * `function_exists` * `get_class` * `gmdate` -* `hash` -* `htmlspecialchars` -* `html_entity_decode` -* `http_build_query` * `implode` * `in_array` * `is_array` @@ -247,12 +236,9 @@ A limited number of safe native PHP functions may also be used as variable modif * `intval` * `is_subclass_of` * `isset` -* `json_encode` * `key` -* `lcfirst` * `ltrim` * `max` -* `mb_strpos` * `mb_strlen` * `mb_strpos` * `mb_strtolower` @@ -262,9 +248,6 @@ A limited number of safe native PHP functions may also be used as variable modif * `method_exists` * `microtime` * `min` -* `nl2br` -* `number_format` -* `parse_url` * `preg_match` * `preg_replace` * `print_r` @@ -274,26 +257,18 @@ A limited number of safe native PHP functions may also be used as variable modif * `round` * `sha1` * `spl_object_hash` -* `sprintf` * `strip_tags` * `strlen` -* `strpos` -* `strtolower` -* `strtotime` -* `strtoupper` * `str_contains` * `str_ends_with` -* `str_ireplace` -* `str_pad` * `str_repeat` * `str_replace` * `str_starts_with` +* `strtolower` +* `strtoupper` * `substr` * `trim` * `ucfirst` -* `uniqid` -* `urlencode` * `var_dump` * `version_compare` * `wcfDebug` -* `wordwrap`