diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2025-03-24 12:53:27 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2025-03-24 12:53:27 +0100 |
commit | 1ce593311b446857e7fb635395de2be876ca2039 (patch) | |
tree | 1be455f7e3dd52a2295398cec4efefc02a8faa0f | |
parent | 214ac4c4a31ff13cc8facde582ef8ef1dba05dc2 (diff) | |
download | nextcloud-server-fix/fix-loginflow-v1.tar.gz nextcloud-server-fix/fix-loginflow-v1.zip |
fix: Go back to soft typing for template function pfix/fix-loginflow-v1
Strong typing breaks legacy code in this case.
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r-- | lib/private/Template/functions.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/Template/functions.php b/lib/private/Template/functions.php index 4354d0d8fce..957aaee2237 100644 --- a/lib/private/Template/functions.php +++ b/lib/private/Template/functions.php @@ -13,7 +13,10 @@ use OCP\IURLGenerator; use OCP\Server; use OCP\Util; -function p(string $string): void { +/** + * @param string $string + */ +function p($string): void { print(Util::sanitizeHTML($string)); } |