PageRenderTime 39ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/trunk/flatpress/fp-includes/smarty/plugins/validate_transform.stripslashes.php

https://bitbucket.org/alexandrul/flatpress
PHP | 41 lines | 5 code | 4 blank | 32 comment | 0 complexity | d12f95f49daf60fe3a77d59f6329ad94 MD5 | raw file
Possible License(s): AGPL-1.0, GPL-2.0, MIT
  1. <?php
  2. /**
  3. * Project: SmartyValidate: Form Validator for the Smarty Template Engine
  4. * File: validate_transform.stripslashes.php
  5. * Author: Monte Ohrt <monte at newdigitalgroup dot com>
  6. *
  7. * This library is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU Lesser General Public
  9. * License as published by the Free Software Foundation; either
  10. * version 2.1 of the License, or (at your option) any later version.
  11. *
  12. * This library is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * Lesser General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Lesser General Public
  18. * License along with this library; if not, write to the Free Software
  19. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  20. *
  21. * @link http://www.phpinsider.com/php/code/SmartyValidate/
  22. * @copyright 2001-2005 New Digital Group, Inc.
  23. * @author NoWhereMan
  24. * @package SmartyValidate
  25. * @version 2.6-dev
  26. */
  27. /**
  28. * transform fuction, trim a value
  29. *
  30. * @param string $value the value being trimmed
  31. * @param array $params the parameters passed to the transform function
  32. * @param array $formvars the form variables
  33. */
  34. function smarty_validate_transform_stripslashes(&$value, $params, &$formvars) {
  35. return stripslashes($value);
  36. }
  37. ?>