/installer/includes/StripSlashes.php
PHP | 12 lines | 11 code | 0 blank | 1 comment | 1 complexity | 3cd78f6f7c9686058f6eadc86742d372 MD5 | raw file
Possible License(s): LGPL-2.1, BSD-3-Clause, GPL-2.0
- <?php
- //gjergji : fix for magic quotes on on windows
- function strip_magic_quotes($arr) {
- foreach ($arr as $k => $v) {
- if (is_array($v))
- { $arr[$k] = strip_magic_quotes($v); }
- else
- { $arr[$k] = stripslashes($v); }
- }
- return $arr;
- }
- ?>