diff options
Diffstat (limited to '')
-rw-r--r-- | src/web/helpers/sanitize.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/web/helpers/sanitize.php b/src/web/helpers/sanitize.php index 5d37852..495c249 100644 --- a/src/web/helpers/sanitize.php +++ b/src/web/helpers/sanitize.php @@ -1,6 +1,6 @@ <?php /* Copyright (c) 2024 Freya Murphy */ -function esc($data) { +function esc(string $data): string { $data = str_replace('&', '&', $data); $data = str_replace('<', '<', $data); $data = str_replace('>', '>', $data); |