dvadf
File manager - Edit - /home/centroca/public_html/wp/wp-content/plugins/nextgen-gallery/src/Util/Sanitization.php
Back
<?php namespace Imagely\NGG\Util; /** * Utility class for data sanitization operations. * * Provides methods for cleaning and sanitizing various types of data. */ class Sanitization { /** * Recursively calls stripslashes() on strings, arrays, and objects * * @param mixed $value Value to be processed * @return mixed Resulting value */ public static function recursive_stripslashes( $value ) { if ( is_string( $value ) ) { $value = stripslashes( $value ); } elseif ( is_array( $value ) ) { foreach ( $value as &$tmp ) { $tmp = self::recursive_stripslashes( $tmp ); } } elseif ( is_object( $value ) ) { foreach ( get_object_vars( $value ) as $key => $data ) { $value->{$key} = self::recursive_stripslashes( $data ); } } return $value; } }
dvadf
dvadf
| ver. 1.4 |
Github
|
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings