diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-05-10 22:26:51 -0500 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-05-11 10:22:44 -0500 |
commit | 3fa604cc5edad8efae30cb33b13e3a23ee2494fd (patch) | |
tree | 6f1b445bcbab3740f850d4288b41a4c06e0e448a /lib/base.php | |
parent | 23b6f0e4d72f0a70eec9b4ba69ba9e5a0cb72731 (diff) | |
download | nextcloud-server-3fa604cc5edad8efae30cb33b13e3a23ee2494fd.tar.gz nextcloud-server-3fa604cc5edad8efae30cb33b13e3a23ee2494fd.zip |
Allow to enforce update via web UI
* adds a disclaimer that an update via web UI is on own risk
* allows to skip the warning
* fixes #4353
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php index 483cd656916..0a51d3af5fc 100644 --- a/lib/base.php +++ b/lib/base.php @@ -343,7 +343,10 @@ class OC { $tooBig = ($totalUsers > 50); } } - if ($disableWebUpdater || $tooBig) { + $ignoreTooBigWarning = isset($_GET['IKnowThatThisIsABigInstanceAndTheUpdateRequestCouldRunIntoATimeoutAndHowToRestoreABackup']) && + $_GET['IKnowThatThisIsABigInstanceAndTheUpdateRequestCouldRunIntoATimeoutAndHowToRestoreABackup'] === 'IAmSuperSureToDoThis'; + + if ($disableWebUpdater || ($tooBig && !$ignoreTooBigWarning)) { // send http status 503 header('HTTP/1.1 503 Service Temporarily Unavailable'); header('Status: 503 Service Temporarily Unavailable'); |