From 31e614468824a6ac0aa795ccf1592f64459360a1 Mon Sep 17 00:00:00 2001 From: nacin Date: Sat, 13 Aug 2011 06:10:02 +0000 Subject: [PATCH] Pedantic whitespace in validate_file(). git-svn-id: http://svn.automattic.com/wordpress/trunk@18543 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 35dd776f13..fe5d765c40 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -3605,16 +3605,16 @@ function iis7_supports_permalinks() { * @return int 0 means nothing is wrong, greater than 0 means something was wrong. */ function validate_file( $file, $allowed_files = '' ) { - if ( false !== strpos( $file, '..' )) + if ( false !== strpos( $file, '..' ) ) return 1; - if ( false !== strpos( $file, './' )) + if ( false !== strpos( $file, './' ) ) return 1; - if (!empty ( $allowed_files ) && (!in_array( $file, $allowed_files ) ) ) + if ( ! empty( $allowed_files ) && ! in_array( $file, $allowed_files ) ) return 3; - if (':' == substr( $file, 1, 1 )) + if (':' == substr( $file, 1, 1 ) ) return 2; return 0;