aboutsummaryrefslogtreecommitdiffstats
path: root/lib/base.php
Commit message (Collapse)AuthorAgeFilesLines
* Fix basic auth for OAuth token endpointJoas Schilling2021-10-191-1/+7
| | | | | | | | Don't try to login when a client is trying to get a OAuth token. OAuth needs to support basic auth too, so the login is not valid inside Nextcloud and the Login exception would ruin it. Signed-off-by: Joas Schilling <coding@schilljs.com>
* Remove usage of \OC_Util::getDefaultPageUrl() and ↵Daniel Rudolf2021-08-041-4/+2
| | | | | | \OC_Util::redirectToDefaultPage() Signed-off-by: Daniel Rudolf <github.com@daniel-rudolf.de>
* Migrate HintException to OCPGary Kim2021-06-301-1/+1
| | | | Signed-off-by: Gary Kim <gary@garykim.dev>
* accounts event handler to use eventdispatcher, DI and Accounts APIArthur Schiwon2021-06-301-2/+4
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Merge pull request #27190 from nextcloud/bugfix/noid/deduplicate-translationJoas Schilling2021-06-161-5/+5
|\ | | | | Deduplicate translations and fix double .
| * Deduplicate translations and fix double .Joas Schilling2021-06-041-5/+5
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-2/+2
|/ | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Merge pull request #26758 from J0WI/more-strictChristoph Wurst2021-04-281-1/+1
|\ | | | | Some more strict_types
| * Fix ini_set() typeJ0WI2021-04-261-1/+1
| | | | | | | | Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* | Fix psalm errorsJoas Schilling2021-04-271-1/+1
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Don't hardcode the product name to Nextcloud but use the theming valueJoas Schilling2021-03-221-1/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #25238 from nextcloud/enh/noid/apps-defacto-in-rootRoeland Jago Douma2021-01-211-9/+2
|\ | | | | Apps folder is defacto in root folder and not above
| * Apps folder is defacto in root folder and not aboveMorris Jobke2021-01-201-9/+2
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Re-use fetched dependencies in lib/base.phpMorris Jobke2021-01-201-39/+37
|/ | | | | | | | Reduces calls to DI container by reusing already fetched dependencies. For status.php it went from 355 to 344. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #25015 from nextcloud/fix/no-double-intl-polyfillRoeland Jago Douma2021-01-081-2/+1
|\ | | | | Replace patchwork/utf8 with symfony-polyfill-*
| * Replace patchwork/utf8 with symfony-polyfill-*Christoph Wurst2021-01-071-2/+1
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Remove useless ini_set functionsCarlos Ferreira2021-01-071-5/+0
|/
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Make $vars and $secureRandom required.Daniel Kesselberg2020-12-101-1/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Allow lazy app registrationChristoph Wurst2020-11-181-1/+1
| | | | | | | | During app installation we run migration steps. Those steps may use services the app registers or classes from composer. Hence we have to make sure the app runs through the registration. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove some IRouter methodsRoeland Jago Douma2020-11-171-1/+1
| | | | | | | | | This is not the end. IRouter needs to burn. But it is a start. 🎵 we didn't start the fire 🎵 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Removed config.jsJohn Molakvoæ2020-11-091-1/+0
|
* Do not setup the default FS on normal routesRoeland Jago Douma2020-11-061-1/+0
| | | | | | | This should help with load times hopefully. Only initialize the FS if we actually ned it. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Use auto-wiring on most outer levelJoas Schilling2020-10-201-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* PSR logger for accountsJoas Schilling2020-10-201-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix type errors detected by PsalmChristoph Wurst2020-10-141-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Don't use deprecated getIniWrapper() anymoreJoas Schilling2020-08-201-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Migrate OC_Group post_removeFromGroup hook to actual event objectMorris Jobke2020-07-301-3/+3
| | | | | | | | Ref #14552 This adds a BeforeUserRemovedEvent to the LDAP backend because it was missing. It's not really before, but we don't have the before state. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Correctly remove usergroup shares on removing group membersJoas Schilling2020-07-301-1/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Remove hook for initSessionMorris Jobke2020-07-071-8/+2
| | | | | | It's not used anyways and allowed to manipulate the state of the session. Also removed the code handling this. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Migrate Settings to new bootstrap mechanismChristoph Wurst2020-06-171-2/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add dedicated API for apps' bootstrapping processChristoph Wurst2020-06-171-0/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add lazy events for the Node APIRoeland Jago Douma2020-05-281-0/+1
| | | | | | | | | | | Right now if you want to get events via the Node API you have to have a real instance of the Root. Which in turns sets up the whole FS. We should make sure this is done lazy. Else enabling the preview generator for example makes you setup the whole FS on each and every authenticated call. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add visibility to all methods and position of static keywordChristoph Wurst2020-04-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-25/+20
| | | | | | | | | | | | | | | 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>
* Remove trailing and in between spacesChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove spaces after method or function callChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fixes the throttler not checking the user state on postLoginArthur Schiwon2020-04-031-1/+1
| | | | | | | a listener to the post login events can still reject a login, so that a user is not necessarily available at the time. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Merge pull request #20241 from nextcloud/fix/license-headers-19Roeland Jago Douma2020-04-011-0/+2
|\ | | | | Update the license headers for Nextcloud 19
| * Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+2
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Update base.phpJohn Molakvoæ2020-03-281-2/+1
| |
* | Update base.phpJohn Molakvoæ2020-03-281-1/+0
|/
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-17/+17
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* E_ALL already sets E_DEPRECATEDJose Quinteiro2020-03-091-1/+1
| | | | Signed-off-by: Jose Quinteiro <github@quinteiro.org>
* Set error_logging correctly. Fixes #19847Jose Quinteiro2020-03-091-1/+5
| | | | | | | Don't override the error_logging setting from php.ini unless we're debugging. Signed-off-by: Jose Quinteiro <github@quinteiro.org>
* Check that username and password are present.Daniel Kesselberg2020-02-231-4/+6
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Move overwritehost check to isTrustedDomainJulius Härtl2019-12-071-3/+0
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update license headersChristoph Wurst2019-12-051-4/+9
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Make sure we create an app's Application class just onceChristoph Wurst2019-10-111-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>