aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/AppFramework/OCS/BaseResponse.php
Commit message (Collapse)AuthorAgeFilesLines
* feat: Add new forbidden filename options to CapabilitiesFerdinand Thiessen2024-07-111-1/+3
| | | | | | | | | Allow clients to access the new filename validation options and make frontend name validation possible. Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Co-authored-by: Kate <26026535+provokateurin@users.noreply.github.com> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-241-24/+2
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix xml ocs response for serializable objectsKlaus2024-02-231-0/+4
| | | | | Signed-off-by: sualko <klaus@jsxc.org> Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-4/+4
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Add template types to responsesjld31032023-06-301-1/+9
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* Allow stdClass in XML responsesjld31032023-06-131-0/+4
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* Refactors "strpos" calls in lib/private to improve code readability.Faraz Samapoor2023-05-151-1/+1
| | | | Signed-off-by: Faraz Samapoor <fsamapoor@gmail.com>
* Fix types in OCS json answer (status code is an int)Côme Chilliet2023-01-201-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix crash in OCS when getting info about an applicationCôme Chilliet2023-01-201-8/+11
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-2/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Propagate throttling on OCS responseLukas Reschke2021-06-011-0/+5
| | | | | | The BaseResponse converter did not take over any throttling state from the DataResponse. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-2/+1
| | | | | | | | | | | | | | | 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>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove unused importsChristoph Wurst2020-03-251-1/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix mismatching doc block parameter typesChristoph Wurst2020-03-061-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use strpos to check that @ is the first charDaniel Kesselberg2020-01-231-1/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Update license headersChristoph Wurst2019-12-051-1/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-221-0/+1
| | | | | | | | | | | * 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>
* Have the OCSBaseResponse call the parent constructorRoeland Jago Douma2019-08-081-1/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Do not send a body for "No content", "Not modified" and othersJoas Schilling2018-05-041-3/+55
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add trict CSP to OCS responsesRoeland Jago Douma2016-09-151-1/+2
| | | | | If a repsonse now explicitly has the Empty CSP set then the middleware won't touch it.
* Set proper content type on OCS responsesRoeland Jago Douma2016-09-071-0/+10
|
* Split OCS version handlingRoeland Jago Douma2016-09-061-0/+85
This cleans up a bit the OCSController/Middleware. Since the 2 versions of OCS differ a bit. Moved a lot of stuff internal since it is of no concern to the outside.