aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/security/trusteddomainhelper.php
Commit message (Collapse)AuthorAgeFilesLines
* Move \OC\Security to PSR-4Roeland Jago Douma2016-04-141-90/+0
|
* Explicitly check for portLukas Reschke2016-03-101-0/+6
| | | | | | The setup uses `\OCP\IRequest::getInsecureServerHost` which in some cases can also include a port. This makes the trusted domain check fail thus. I've decided to add this here that way because adjusting the setup would require parsing the host properly. This is not something that can be done very good in PHP. Check the following example for why `parse_url` is not our friend: https://3v4l.org/k501Z
* Happy new year!Thomas Müller2016-01-121-1/+1
|
* Do not trust castingLukas Reschke2015-12-081-1/+1
|
* Remove legacy checkLukas Reschke2015-12-081-5/+0
| | | | This one is not required anymore as we have the RepairConfig repair step since November 2014.
* Update license headersJenkins for ownCloud2015-03-261-4/+18
|
* Revert "Updating license headers"Morris Jobke2015-02-261-17/+5
| | | | This reverts commit 6a1a4880f0d556fb090f19a5019fec31916f5c36.
* Updating license headersJenkins for ownCloud2015-02-231-5/+17
|
* Make scrutinizer happyLukas Reschke2015-02-161-1/+1
|
* Refactor OC_Request into TrustedDomainHelper and IRequestLukas Reschke2015-02-161-0/+75
This changeset removes the static class `OC_Request` and moves the functions either into `IRequest` which is accessible via `\OC::$server::->getRequest()` or into a separated `TrustedDomainHelper` class for some helper methods which should not be publicly exposed. This changes only internal methods and nothing on the public API. Some public functions in `util.php` have been deprecated though in favour of the new non-static functions. Unfortunately some part of this code uses things like `__DIR__` and thus is not completely unit-testable. Where tests where possible they ahve been added though. Fixes https://github.com/owncloud/core/issues/13976 which was requested in https://github.com/owncloud/core/pull/13973#issuecomment-73492969