summaryrefslogtreecommitdiffstats
path: root/tests/lib/request.php
Commit message (Collapse)AuthorAgeFilesLines
* Refactor OC_Request into TrustedDomainHelper and IRequestLukas Reschke2015-02-161-333/+0
| | | | | | | | | | 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
* Add unit testRobin Appelman2015-01-211-0/+1
|
* Add test for IPv6 without portLukas Reschke2014-12-041-1/+2
|
* Trim port from domainLukas Reschke2014-12-031-0/+16
| | | | | | Depending on the used environment the port might be appended to the host header resulting in an inaccessible instance when initially setting up on a system with a different HTTP or HTTPS port. (for example test:500) To test this setup ownCloud under a different port with and without this patch. (heads-up: localhost is always white-listed, so use a different domain)
* Merge pull request #12297 from owncloud/issue/10991-all-testcaseMorris Jobke2014-11-201-3/+7
|\ | | | | Issue/10991 all testcase
| * Make root tests extend the \Test\TestCaseJoas Schilling2014-11-191-3/+7
| |
* | Ignore port for trusted domainsLukas Reschke2014-11-181-2/+6
|/ | | | | | | | | This lead to a lot of confusion in the past and did not really offer any value. Let's remove the port check therefore. (it's anyways not really a part of the domain) Fixes https://github.com/owncloud/core/issues/12150 and https://github.com/owncloud/core/issues/12123 and also a problem reported by @DeepDiver1975. Conflicts: lib/private/request.php
* Add support for getting the real client IP behind proxiesLukas Reschke2014-08-271-3/+35
| | | | | | | | | | Fixes https://github.com/owncloud/core/issues/10624 Fix copy paste fail Add unittest for comma separated headers Revert 3rdparty
* Added unit tests for serverHost and other related functionsVincent Petry2014-03-061-0/+137
|
* The regexp of the Freebox user agent is now more strict.Martial Saunois2014-01-291-0/+5
| | | | A new unit test has been added in consequence.
* Unit tests added for the new Freebox user agent.Martial Saunois2014-01-281-0/+10
|
* Added isUserAgent() method to requestVincent Petry2013-12-191-0/+50
| | | | | | - added isUserAgent() method to OC_Request which makes it possible to test it - OC_Response::setContentDisposition now uses OC_Request::isUserAgent()
* fixes #6050Thomas Müller2013-11-261-3/+8
|
* in case uri and script name don't match we better throw an exceptionThomas Müller2013-11-251-0/+22
|
* handle duplicate slashes in case of reverse proxy configurationThomas Müller2013-11-251-0/+20
|
* adding simple unit test to test scriptName() under overwrite conditionThomas Mueller2013-11-241-0/+26