summaryrefslogtreecommitdiffstats
path: root/lib/private/util.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-12-05 19:14:47 +0100
committerLukas Reschke <lukas@owncloud.com>2014-12-05 19:14:47 +0100
commitddcf2b84ec158d035c77693664dac8bd40e1b6e7 (patch)
treede2c8c71722af0e409c71440e669a74146070529 /lib/private/util.php
parent5f66cb32502c88d7182c3dc5994ef733762fa665 (diff)
downloadnextcloud-server-ddcf2b84ec158d035c77693664dac8bd40e1b6e7.tar.gz
nextcloud-server-ddcf2b84ec158d035c77693664dac8bd40e1b6e7.zip
Remove checks for safe mode and magic quotes
Both are removed from 5.4.0 Safe Mode: http://php.net/manual/en/features.safe-mode.php > This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0. Magic Quotes: http://php.net/manual/en/security.magicquotes.php > This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0.
Diffstat (limited to 'lib/private/util.php')
-rw-r--r--lib/private/util.php20
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/private/util.php b/lib/private/util.php
index 38db431e895..d28fa80160c 100644
--- a/lib/private/util.php
+++ b/lib/private/util.php
@@ -613,26 +613,6 @@ class OC_Util {
);
$webServerRestart = true;
}
- if (((strtolower(@ini_get('safe_mode')) == 'on')
- || (strtolower(@ini_get('safe_mode')) == 'yes')
- || (strtolower(@ini_get('safe_mode')) == 'true')
- || (ini_get("safe_mode") == 1))
- ) {
- $errors[] = array(
- 'error' => $l->t('PHP Safe Mode is enabled. ownCloud requires that it is disabled to work properly.'),
- 'hint' => $l->t('PHP Safe Mode is a deprecated and mostly useless setting that should be disabled. '
- . 'Please ask your server administrator to disable it in php.ini or in your webserver config.')
- );
- $webServerRestart = true;
- }
- if (get_magic_quotes_gpc() == 1) {
- $errors[] = array(
- 'error' => $l->t('Magic Quotes is enabled. ownCloud requires that it is disabled to work properly.'),
- 'hint' => $l->t('Magic Quotes is a deprecated and mostly useless setting that should be disabled. '
- . 'Please ask your server administrator to disable it in php.ini or in your webserver config.')
- );
- $webServerRestart = true;
- }
if (!self::isAnnotationsWorking()) {
$errors[] = array(
'error' => 'PHP is apparently setup to strip inline doc blocks. This will make several core apps inaccessible.',