Skip to content
Snippets Groups Projects
Commit c845e756 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Expand if to multiple lines

Oneliners are ugly.
parent 53ca0db4
Branches
No related tags found
No related merge requests found
......@@ -467,8 +467,12 @@ class OC_Util {
* @return array with sanitized strings or a single sanitized string, depends on the input parameter.
*/
public static function sanitizeHTML( &$value ) {
if (is_array($value) || is_object($value)) array_walk_recursive($value, 'OC_Util::sanitizeHTML');
else $value = htmlentities($value, ENT_QUOTES, 'UTF-8'); //Specify encoding for PHP<5.4
if (is_array($value) || is_object($value))
{
array_walk_recursive($value, 'OC_Util::sanitizeHTML');
} else {
$value = htmlentities($value, ENT_QUOTES, 'UTF-8'); //Specify encoding for PHP<5.4
}
return $value;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment