From: Bart Visscher Date: Tue, 9 Apr 2013 19:11:44 +0000 (+0200) Subject: Suppress the notice from the nullbyte check X-Git-Tag: v6.0.0alpha2~933^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f9b77e392cd94bd2a7e54b420a4db1340f101e23;p=nextcloud-server.git Suppress the notice from the nullbyte check --- diff --git a/core/setup.php b/core/setup.php index b61590e9e4b..40e30db533a 100644 --- a/core/setup.php +++ b/core/setup.php @@ -19,7 +19,7 @@ $hasOracle = is_callable('oci_connect'); $hasMSSQL = is_callable('sqlsrv_connect'); $datadir = OC_Config::getValue('datadirectory', OC::$SERVERROOT.'/data'); $vulnerableToNullByte = false; -if(file_exists(__FILE__."\0Nullbyte")) { // Check if the used PHP version is vulnerable to the NULL Byte attack (CVE-2006-7243) +if(@file_exists(__FILE__."\0Nullbyte")) { // Check if the used PHP version is vulnerable to the NULL Byte attack (CVE-2006-7243) $vulnerableToNullByte = true; }