PageRenderTime 38ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 0ms

/installer/includes/StripSlashes.php

https://github.com/timschofield/2.8
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
  1. <?php
  2. //gjergji : fix for magic quotes on on windows
  3. function strip_magic_quotes($arr) {
  4. foreach ($arr as $k => $v) {
  5. if (is_array($v))
  6. { $arr[$k] = strip_magic_quotes($v); }
  7. else
  8. { $arr[$k] = stripslashes($v); }
  9. }
  10. return $arr;
  11. }
  12. ?>