about summary refs log tree commit diff stats
path: root/include/common.php
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2026-06-26 17:44:13 +0300
committerAndrew Dolgov <fox@fakecake.org>2026-06-26 17:44:13 +0300
commit96299844c2e630a8ea27d86d53aadf98216b9ab8 (patch)
tree410d76eb9004c783545ee80129c69096b2040752 /include/common.php
parente3b4fbde9066ec58873240ff67c7fb7ce1dfbdd4 (diff)
downloadthe-epube-96299844c2e630a8ea27d86d53aadf98216b9ab8.tar.gz
the-epube-96299844c2e630a8ea27d86d53aadf98216b9ab8.tar.xz
drop clean()
Diffstat (limited to 'include/common.php')
-rw-r--r--include/common.php13
1 files changed, 0 insertions, 13 deletions
diff --git a/include/common.php b/include/common.php
index 684d9c6..12753c8 100644
--- a/include/common.php
+++ b/include/common.php
@@ -32,16 +32,3 @@
 
         return "";
     }
-
-    /**
-     * This is used for user http parameters unless HTML code is actually needed.
-     */
-    function clean(mixed $param): mixed {
-        if (is_array($param)) {
-            return array_map("trim", array_map("strip_tags", $param));
-        } else if (is_string($param)) {
-            return trim(strip_tags($param));
-        } else {
-            return $param;
-        }
-    }