Merge pull request #2834 from owncloud/suppress-setup-warning

Suppress the notice from the nullbyte check
This commit is contained in:
Lukas Reschke 2013-04-09 13:10:26 -07:00
commit 0c395e9aa4
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ $hasOracle = is_callable('oci_connect');
$hasMSSQL = is_callable('sqlsrv_connect'); $hasMSSQL = is_callable('sqlsrv_connect');
$datadir = OC_Config::getValue('datadirectory', OC::$SERVERROOT.'/data'); $datadir = OC_Config::getValue('datadirectory', OC::$SERVERROOT.'/data');
$vulnerableToNullByte = false; $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; $vulnerableToNullByte = true;
} }