aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
Commit message (Collapse)AuthorAgeFilesLines
* chore: Add SPDX headerAndy Scherzinger2024-05-261-28/+3
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* chore(index.php): Use strict_types and Server::get in index.phpCôme Chilliet2024-02-121-10/+20
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(bruteforce-protection): Don't throw a 500 when MaxDelayReached is thrownJoas Schilling2023-11-301-0/+17
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Replace ILogger method calls index.phpfenn-cs2023-05-221-5/+21
| | | | | | | | | | | This commit replaces more ILogger method calls with `Psr\Log\LoggerInterface` as we gradually move away from the custom ILogger. This commit aslo, sets the customPsrLogger to not depend on the database to `logfile` config value. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* Check style updateCarl Schwan2022-01-131-1/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Migrate HintException to OCPGary Kim2021-06-301-1/+1
| | | | Signed-off-by: Gary Kim <gary@garykim.dev>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Reply with JSON when html is not accepted like in SecurityMiddlewareJoas Schilling2021-05-121-0/+12
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Reply with UNAUTHORIZED like on APIs when login exception was thrownJoas Schilling2021-05-121-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-3/+1
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-5/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-6/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update index.phppaul2019-03-071-1/+1
| | | Linking to NC 15 documentation instead of NC 13
* Log the previous exception during hard failureMorris Jobke2018-11-011-1/+1
| | | | | | * otherwise the exception that was caused by the template is logged Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Try to not run into the white page of death and still log something in the ↵Morris Jobke2018-06-291-2/+6
| | | | | | web server error log Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Do not use HTTP code OC_Response constants anymoreMorris Jobke2018-06-261-4/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Replace hardcoded status headers with calls to http_response_code()Morris Jobke2018-06-261-15/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Server exception error pages by default with a 500 status codeMorris Jobke2018-06-261-6/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Server error/hint pages with a 500 error code to avoid it being seen instead ↵Morris Jobke2018-06-261-4/+2
| | | | | | | | | of the actual resource * found while reviewing #7205 * allow to specify a special status code Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add PHP missing message to index.phpMarius Blüm2018-05-081-0/+5
| | | Signed-off-by: Marius Blüm <marius@lineone.io>
* Nextcloud 13 is not compatible with newer than php 7.2Roeland Jago Douma2017-12-121-7/+1
| | | | | | | | | | | Just to avoid users from trying this with a to new (untested) php version * Moved the check logic to 1 place * All directly callable scripts just require this on top * exit hard (-1) so we know scripts won't continue * Return status 500 so no sync clients will try fancy stuff Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #7073 from nextcloud/no-whitepage-of-deathRoeland Jago Douma2017-11-071-1/+23
|\ | | | | Show proper error page even if the config.php has syntax errors
| * Show proper error page even if the config.php has syntax errorsMorris Jobke2017-11-061-1/+23
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Change @georgehrke's emailMorris Jobke2017-11-061-1/+1
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Update license headersMorris Jobke2017-11-061-0/+3
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Improve exception handlingMorris Jobke2017-09-261-1/+10
| | | | | | | | | | If there is an exception in the template handling then a white page is shown. This improves the handling of this and shows text only about the internal error. To test this just setup redis as cache and then disable the php-redis module. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* fix wrong method nameMorris Jobke2016-10-201-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Changed request to not add a prefix to the url (#26256)Sergio Bertolín2016-10-201-0/+3
| | | | | | | | * Changed request to not add a prefix to the url * Expecting forbidden instead of service unavailable * Handling login exceptions
* use older php array syntax in index.phpGeorg Ehrke2016-10-071-3/+3
|
* Allow to call the files even when you are in another instance atmJoas Schilling2016-10-061-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Master supports PHP 7.1Lukas Reschke2016-09-081-8/+0
|
* Proper brandingLukas Reschke2016-08-301-1/+1
|
* Show error if PHP version below 5.6 is usedLukas Reschke2016-08-301-4/+4
|
* Nextcloud is not compatible with PHP 7.1Lukas Reschke2016-08-101-0/+8
| | | | Make the code fail hard before people update and then experience some half-broken stuff. See also https://github.com/nextcloud/docker-ci/issues/10
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix othersJoas Schilling2016-07-211-1/+2
|
* Update license headersLukas Reschke2016-05-261-1/+1
|
* Catch class Error on all root entrypointsThomas Müller2016-04-201-2/+6
|
* Happy new year!Thomas Müller2016-01-121-1/+1
|
* update licence headers via scriptMorris Jobke2015-10-051-1/+0
|
* Update license headersJenkins for ownCloud2015-03-261-20/+24
|
* Revert "Updating license headers"Morris Jobke2015-02-261-23/+21
| | | | This reverts commit 6a1a4880f0d556fb090f19a5019fec31916f5c36.
* Updating license headersJenkins for ownCloud2015-02-231-21/+23
|
* Show warning for PHP versions older than 5.4.0Lukas Reschke2015-02-051-0/+8
| | | | We can't check the PHP version in the installer since base.php already used 5.4 syntax. Thus for a better UX we show a simple warning instead of a fatal PHP error.
* Make files non executableLukas Reschke2014-10-241-0/+0
| | | | There is not much sense in having these files marked executable, we should avoid that.
* Do not show exception to the end-userLukas Reschke2014-09-171-0/+3
| | | | Log the error instead of potentially leaking sensitive information
* handle service not available exceptions in index, remote and public.phpRobin Appelman2014-08-041-0/+6
|
* remove global variable $RUNTIME_NOAPPS - it's just superfluousThomas Müller2014-02-061-2/+0
|