From f9b77e392cd94bd2a7e54b420a4db1340f101e23 Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Tue, 9 Apr 2013 21:11:44 +0200 Subject: [PATCH] Suppress the notice from the nullbyte check --- core/setup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5