Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-02-17Refactor OC_Request into TrustedDomainHelper and IRequestLukas Reschke
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
2015-02-09Respect `mod_unique_id` and refactor `OC_Request::getRequestId`Lukas Reschke
When `mod_unique_id` is enabled the ID generated by it will be used for logging. This allows for correlation of the Apache logs and the ownCloud logs. Testplan: - [ ] When `mod_unique_id` is enabled the request ID equals the one generated by `mod_unique_id`. - [ ] When `mod_unique_id` is not available the request ID is a 20 character long random string - [ ] The generated Id is stable over the lifespan of one request Changeset looks a little bit larger since I had to adjust every unit test using the HTTP\Request class for proper DI. Fixes https://github.com/owncloud/core/issues/13366
2015-01-21Remove duplicated slashes from the requested urlRobin Appelman
2014-12-03Add workaround for older instancesLukas Reschke
To be removed with oCAdd workaround for older instances To be removed with oC99
2014-12-03Trim port from domainLukas Reschke
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)
2014-11-18Ignore port for trusted domainsLukas Reschke
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
2014-10-24Make files non executableLukas Reschke
There is not much sense in having these files marked executable, we should avoid that.
2014-10-20Add unit tests for convertToRelativePathLukas Reschke
2014-09-17Do not show exception to the end-userLukas Reschke
Log the error instead of potentially leaking sensitive information
2014-08-27Add support for getting the real client IP behind proxiesLukas Reschke
Fixes https://github.com/owncloud/core/issues/10624 Fix copy paste fail Add unittest for comma separated headers Revert 3rdparty
2014-07-07Only overwrite serverHost when in unit testsJoas Schilling
The intention of the original commit 12f7cb87679453fa96c796df857b7e7193d4ee09 was to fix tests. But cron should always return a valid host not localhost.
2014-06-04Upgrade SabreDAV to 1.8.10Thomas Müller
Updating SabreDAV namespaces
2014-05-19Remove all occurences of @brief and @returns from PHPDocMorris Jobke
* test case added to avoid adding them later
2014-05-13Replace @returns with @return, in /libRobin McCorkell
2014-04-21Some more PHPDoc fixesLukas Reschke
2014-04-16Fix PHPdoc in lib/privateBart Visscher
using scrutinizer patch
2014-03-31Allow using "/" in "overwritewebroot"Vincent Petry
Whenever the reverse proxy is using "/" as the webroot, it is now possible to set that value in "overwritewebroot"
2014-03-06Fixed X-Forwarded-Host parsingVincent Petry
2014-03-06Added localhost as trusted domainVincent Petry
2014-03-06Show warning page when accessing server from an untrusted domainVincent Petry
Added early check for the requested domain host and show a warning page if the domain is not trusted.
2014-02-25Fix case where port is missingVincent Petry
Forward port of 6d3b5b24fd4f82c1cbfbc4cade5246a0335f8dda to master
2014-02-22Merge pull request #7259 from owncloud/overwritehost-alwaysLukas Reschke
Add overwritehost config on setup and upgrade
2014-02-21Add overwritehost config on setup and upgradeLukas Reschke
2014-02-20remove unused functions - have been introduced with the old minimizer approachThomas Müller
2014-02-19Scrutinizer Auto-FixesScrutinizer Auto-Fixer
This patch was automatically generated as part of the following inspection: https://scrutinizer-ci.com/g/owncloud/core/inspections/cdfecc4e-a37e-4233-8025-f0d7252a8720 Enabled analysis tools: - PHP Analyzer - JSHint - PHP Copy/Paste Detector - PHP PDepend
2014-02-15Merge branch 'master' into scrutinizer_documentation_patchesThomas Müller
Conflicts: lib/private/appconfig.php
2014-02-08Fix more documentation failesJoas Schilling
Issue #7111
2014-02-06polish documentation based on scrutinizer patchesJörn Friedrich Dreyer
2014-01-29The regexp of the Freebox user agent is now more strict.Martial Saunois
A new unit test has been added in consequence.
2014-01-26New user agent added for the Freebox.Martial Saunois
The Freebox is the multimedia device of a french Internet provider: Free. This device provides a seedbox which uses the user agent "Mozilla/5.0". In the "Content-Disposition" header, if the "filename" key is used with the "filename*=UTF-8''" value, the seedbox does not take care about the header and saves the file name with the origin URL. This patch brings the support for the Freebox users.
2013-12-19Added isUserAgent() method to requestVincent Petry
- added isUserAgent() method to OC_Request which makes it possible to test it - OC_Response::setContentDisposition now uses OC_Request::isUserAgent()
2013-11-28Fix getRawPathInfo for the '/' edge caseRobin Appelman
2013-11-27fix custom routes defined by appsRobin Appelman
2013-11-26fixing failing unit testThomas Müller
2013-11-26fixes #6050Thomas Müller
2013-11-25in case uri and script name don't match we better throw an exceptionThomas Müller
2013-11-25handle duplicate slashes in case of reverse proxy configurationThomas Müller
2013-11-25update PHPDocThomas Mueller
2013-11-24fix overwrite host support and make the code a bit more readableFrank Karlitschek
2013-09-30move the private namespace OC into lib/private - OCP will stay in lib/publicThomas Müller
Conflicts: lib/private/vcategories.php