- Jun 21, 2020
-
-
Roeland Jago Douma authored
Signed-off-by:
Roeland Jago Douma <roeland@famdouma.nl>
-
- May 12, 2020
-
-
Clement Wong authored
Signed-off-by:
Clement Wong <git@clement.hk>
-
- Apr 10, 2020
-
-
Christoph Wurst authored
Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
Christoph Wurst authored
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>
-
- Apr 09, 2020
-
-
Christoph Wurst authored
Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
Christoph Wurst authored
For PSR2 Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
- Mar 26, 2020
-
-
Christoph Wurst authored
Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
- Nov 27, 2019
-
-
Roeland Jago Douma authored
Signed-off-by:
Roeland Jago Douma <roeland@famdouma.nl>
-
- Nov 22, 2019
-
-
Roeland Jago Douma authored
* Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by:
Roeland Jago Douma <roeland@famdouma.nl>
-
- Aug 10, 2019
-
-
Roeland Jago Douma authored
This adds the events and the classes to modify the feature policy. It also adds a default restricted feature policy. Signed-off-by:
Roeland Jago Douma <roeland@famdouma.nl>
-
- Apr 16, 2019
-
-
Roeland Jago Douma authored
For #14179 By default responses should have the strictest (and simplest) CSP possible. Only template responses should require an actual CSP. Signed-off-by:
Roeland Jago Douma <roeland@famdouma.nl>
-
- Jan 08, 2019
-
-
Roeland Jago Douma authored
For #13042 Signed-off-by:
Roeland Jago Douma <roeland@famdouma.nl>
-
- Jan 07, 2019
-
-
Roeland Jago Douma authored
Signed-off-by:
Roeland Jago Douma <roeland@famdouma.nl>
-
- Oct 14, 2018
-
-
Roeland Jago Douma authored
Signed-off-by:
Roeland Jago Douma <roeland@famdouma.nl>
-
- Jun 04, 2018
-
-
Roeland Jago Douma authored
This avoids having to do it at all the places we want cached responses. We can't inject the ITimeFactor without breaking public API. However we can perfectly overwrite the service (resulting in the same testable effect). Signed-off-by:
Roeland Jago Douma <roeland@famdouma.nl>
-
- Jul 27, 2017
-
-
Lukas Reschke authored
Fixes https://github.com/nextcloud/server/issues/5891 Signed-off-by:
Lukas Reschke <lukas@statuscode.ch>
-
- Apr 13, 2017
-
-
Lukas Reschke authored
This makes the new `@BruteForceProtection` annotation more clever and moves the relevant code into it's own middleware. Basically you can now set `@BruteForceProtection(action=$key)` as annotation and that will make the controller bruteforce protected. However, the difference to before is that you need to call `$responmse->throttle()` to increase the counter. Before the counter was increased every time which leads to all kind of unexpected problems. Signed-off-by:
Lukas Reschke <lukas@statuscode.ch>
-
- Mar 29, 2017
-
-
Morris Jobke authored
Signed-off-by:
Morris Jobke <hey@morrisjobke.de>
-
- Mar 16, 2017
-
-
Lukas Reschke authored
As per https://twitter.com/we1x/status/842032709543333890 a nice security hardening Signed-off-by:
Lukas Reschke <lukas@statuscode.ch>
-
- Jan 09, 2017
-
-
Christoph Wurst authored
Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
-
- May 20, 2016
-
-
Joas Schilling authored
* Move a-b to PSR-4 * Move c-d to PSR-4 * Move e+g to PSR-4 * Move h-l to PSR-4 * Move m-r to PSR-4 * Move s-u to PSR-4 * Move files/ to PSR-4 * Move remaining tests to PSR-4 * Remove Test\ from old autoloader
-
- May 18, 2016
-
-
Joas Schilling authored
-
- Sep 29, 2015
-
-
Lukas Reschke authored
Fixes https://github.com/owncloud/core/issues/19438
-
- Aug 10, 2015
-
-
sualko authored
-
- Jun 15, 2015
-
-
Lukas Reschke authored
-
- Feb 16, 2015
-
-
Lukas Reschke authored
This change allows AppFramework applications to specify a custom CSP header for example when the default policy is too strict. Furthermore this allows us to partially migrate away from CSS and allowed eval() in our JavaScript components. Legacy ownCloud components will still use the previous policy. Application developers can use this as following in their controllers: ```php $response = new TemplateResponse('activity', 'list', []); $cspHelper = new ContentSecurityPolicyHelper(); $cspHelper->addAllowedScriptDomain('www.owncloud.org'); $response->addHeader('Content-Security-Policy', $cspHelper->getPolicy()); return $response; ``` Fixes https://github.com/owncloud/core/issues/11857 which is a pre-requisite for https://github.com/owncloud/core/issues/13458 and https://github.com/owncloud/core/issues/11925
-
- Nov 27, 2014
-
-
Lukas Reschke authored
Currently there is no AppFramework way to modify cookies, which makes it unusable for quite some use-cases or results in untestable code. This PR adds some basic functionalities to add and invalidate cookies. Usage: ```php $response = new TemplateResponse(...); $response->addCookie('foo', 'bar'); $response->invalidateCookie('foo'); $response->addCookie('bar', 'foo', new \DateTime('2015-01-01 00:00')); ``` Existing cookies can be accessed with the AppFramework using `$this->request->getCookie($name)`.
-
- Nov 19, 2014
-
-
Joas Schilling authored
-
- Oct 29, 2014
-
-
Bernhard Posselt authored
fix docstrings adjust copyright date another copyright date update another header update implement third headers argument, fix indention, fix docstrings fix docstrings
-
- May 11, 2014
-
-
Bernhard Posselt authored
-
- May 09, 2014
-
-
Bernhard Posselt authored
remove methodannotationreader namespace fix namespace for server container fix tests fail if with cors credentials header is set to true, implement a reusable preflighted cors method in the controller baseclass, make corsmiddleware private and register it for every request remove uneeded local in cors middleware registratio dont uppercase cors to easily use it from routes fix indention comment fixes explicitely set allow credentials header to false dont depend on better controllers PR, fix that stuff later split cors methods to be in a seperate controller for exposing apis remove protected definitions from apicontroller since controller has it
-
- Mar 09, 2014
-
-
Thomas Tanghus authored
-
- Feb 27, 2014
-
-
Jörn Friedrich Dreyer authored
-
- Feb 19, 2014
-
-
Scrutinizer Auto-Fixer authored
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
-
- Oct 23, 2013
-
-
Thomas Tanghus authored
To avoid having to use OCP\Appframework\Http\Http in the public - and stable - API OCP\Appframework\Http is now both a class and a namespace.
-
- Aug 20, 2013
-
-
Thomas Müller authored
-
- Aug 17, 2013
-
-
Thomas Müller authored
-