mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2024-03-22 13:10:41 +08:00
35 lines
699 B
PHP
35 lines
699 B
PHP
<?php
|
|
/**
|
|
* ZeroBin
|
|
*
|
|
* a zero-knowledge paste bin
|
|
*
|
|
* @link http://sebsauvage.net/wiki/doku.php?id=php:zerobin
|
|
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
|
* @license http://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
|
* @version 0.15
|
|
*/
|
|
|
|
/**
|
|
* filter
|
|
*
|
|
* Provides data filtering functions.
|
|
*/
|
|
class filter
|
|
{
|
|
/**
|
|
* strips slashes deeply
|
|
*
|
|
* @access public
|
|
* @static
|
|
* @param mixed $value
|
|
* @return mixed
|
|
*/
|
|
public static function stripslashes_deep($value)
|
|
{
|
|
return is_array($value) ?
|
|
array_map('filter::stripslashes_deep', $value) :
|
|
stripslashes($value);
|
|
}
|
|
}
|