Pedantic whitespace in validate_file().

git-svn-id: https://develop.svn.wordpress.org/trunk@18543 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2011-08-13 06:10:02 +00:00
parent 4d13f33024
commit 242f97f7db
1 changed files with 4 additions and 4 deletions

View File

@ -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;