summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2013-01-14 14:37:23 -0800
committerLukas Reschke <lukas@statuscode.ch>2013-01-14 14:37:23 -0800
commit71ae41716a56305ab9509571c0a84311b9f3eb63 (patch)
treee1fb8e9189090b8ad9cfe49fd9c16dd3b2753445
parent53ca0db434f3ad8d043a0a9b76bd59f22af38f99 (diff)
parentab287d2ba481c29a08853e2eadd3655c01ca135f (diff)
downloadnextcloud-server-71ae41716a56305ab9509571c0a84311b9f3eb63.tar.gz
nextcloud-server-71ae41716a56305ab9509571c0a84311b9f3eb63.zip
Merge pull request #1182 from owncloud/sanitizeHTML-Clean
Expanded one line if statement - Trivial
-rwxr-xr-xlib/util.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/util.php b/lib/util.php
index a8576fc1057..374baa43dbe 100755
--- a/lib/util.php
+++ b/lib/util.php
@@ -467,8 +467,11 @@ 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;
}