aboutsummaryrefslogtreecommitdiff
path: root/h-source/Library/Functions.php
diff options
context:
space:
mode:
authorYuchen Pei <hi@ypei.me>2021-09-09 17:33:45 +1000
committerYuchen Pei <hi@ypei.me>2021-09-09 17:43:50 +1000
commitad2cfad59b62b1b188d76d83ebf89b3dc69787f3 (patch)
tree899d3bf4f523100f139dcfae605df1028c00803f /h-source/Library/Functions.php
parente98b991a5870b8af01b6987118efd4f3ee60834d (diff)
minor changes to dispel php notices
- end(): https://stackoverflow.com/questions/4636166/only-variables-should-be-passed-by-reference - get_magic_quotes_gpc() always returns false: https://www.php.net/manual/en/function.get-magic-quotes-gpc.php - __autoload(): https://stackoverflow.com/questions/50780678/deprecated-autoload-is-deprecated-use-spl-autoload-register
Diffstat (limited to 'h-source/Library/Functions.php')
-rwxr-xr-xh-source/Library/Functions.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/h-source/Library/Functions.php b/h-source/Library/Functions.php
index 1477680..e0e77bf 100755
--- a/h-source/Library/Functions.php
+++ b/h-source/Library/Functions.php
@@ -107,9 +107,6 @@ SANITIZE DEEP
*/
function stripslashesDeep($value) {
- if(get_magic_quotes_gpc()) {#if stripslashes
- return array_map('stripslashes', $value);
- }
return $value;
}
@@ -304,4 +301,4 @@ function xml_encode($string)
}
return strtr($string, $trans);
-} \ No newline at end of file
+}