about summary refs log tree commit diff stats
path: root/include/common.php
diff options
context:
space:
mode:
authorfox <fox@fakecake.org>2026-06-26 17:47:01 +0300
committerfox <fox@fakecake.org>2026-06-26 17:47:01 +0300
commit04524943b6b6b1ed314df320630fa3eed1783b2c (patch)
tree410d76eb9004c783545ee80129c69096b2040752 /include/common.php
parenta17d0f6277cd169f237ce8bb5cfc705c5582ed66 (diff)
parent96299844c2e630a8ea27d86d53aadf98216b9ab8 (diff)
downloadthe-epube-04524943b6b6b1ed314df320630fa3eed1783b2c.tar.gz
the-epube-04524943b6b6b1ed314df320630fa3eed1783b2c.tar.xz
Merge branch 'dev' into 'master'
drop clean()

See merge request git/the-epube!69
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;
-        }
-    }