]> source.dussan.org Git - nextcloud-server.git/commitdiff
Suppress the notice from the nullbyte check
authorBart Visscher <bartv@thisnet.nl>
Tue, 9 Apr 2013 19:11:44 +0000 (21:11 +0200)
committerBart Visscher <bartv@thisnet.nl>
Tue, 9 Apr 2013 19:11:44 +0000 (21:11 +0200)
core/setup.php

index b61590e9e4b581c31c1a89d497bd85970655f432..40e30db533aaca594be9586975a22eeadebd22b1 100644 (file)
@@ -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;
 }