Skip to content
Snippets Groups Projects
Commit 8e6a7350 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Merge pull request #14289 from owncloud/remove-null-byte-check

Remove Null Byte Check
parents 76c511de 20d57c8b
No related branches found
No related tags found
No related merge requests found
...@@ -131,10 +131,6 @@ class Controller { ...@@ -131,10 +131,6 @@ class Controller {
$databases = $setup->getSupportedDatabases(); $databases = $setup->getSupportedDatabases();
$dataDir = $this->config->getSystemValue('datadirectory', \OC::$SERVERROOT.'/data'); $dataDir = $this->config->getSystemValue('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)
$vulnerableToNullByte = true;
}
$errors = array(); $errors = array();
...@@ -200,7 +196,6 @@ class Controller { ...@@ -200,7 +196,6 @@ class Controller {
'databases' => $databases, 'databases' => $databases,
'directory' => $dataDir, 'directory' => $dataDir,
'htaccessWorking' => $htAccessWorking, 'htaccessWorking' => $htAccessWorking,
'vulnerableToNullByte' => $vulnerableToNullByte,
'errors' => $errors, 'errors' => $errors,
); );
} }
......
...@@ -26,13 +26,6 @@ script('core', [ ...@@ -26,13 +26,6 @@ script('core', [
<?php endforeach; ?> <?php endforeach; ?>
</fieldset> </fieldset>
<?php endif; ?> <?php endif; ?>
<?php if($_['vulnerableToNullByte']): ?>
<fieldset class="warning">
<legend><strong><?php p($l->t('Security Warning'));?></strong></legend>
<p><?php p($l->t('Your PHP version is vulnerable to the NULL Byte attack (CVE-2006-7243)'));?><br/>
<?php p($l->t('Please update your PHP installation to use %s securely.', $theme->getName() )); ?></p>
</fieldset>
<?php endif; ?>
<?php if(!$_['htaccessWorking']): ?> <?php if(!$_['htaccessWorking']): ?>
<fieldset class="warning"> <fieldset class="warning">
<legend><strong><?php p($l->t('Security Warning'));?></strong></legend> <legend><strong><?php p($l->t('Security Warning'));?></strong></legend>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment