summaryrefslogtreecommitdiffstats
path: root/apps/files/ajax/download.php
Commit message (Collapse)AuthorAgeFilesLines
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-2/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Drop \OCP\UserChristoph Wurst2021-05-211-1/+1
| | | | | | Inlines and remaining usages and drops the deprecated public API. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* tain-escape the cookie inputRoeland Jago Douma2021-02-091-4/+18
| | | | | | | | we only set the cookie if it is a proper <=32 char alphanum string. Otherwise we just ignore the input. Makes psalm also happier so that we can focus on other errors. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-1/+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-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersMorris Jobke2017-11-061-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix comparisons in the files appJoas Schilling2017-08-011-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix apps/Joas Schilling2016-07-211-1/+2
|
* Update license headersLukas Reschke2016-05-261-4/+4
|
* Http Range requests support in downloadsPiotr Filiciak2016-05-201-1/+10
| | | | Http range requests support is required for video preview
* Happy new year!Thomas Müller2016-01-121-1/+1
|
* Add proper download started feedbackMorris Jobke2015-07-071-0/+11
| | | | | | | | * this code adds a cookie when a special get parameter is set * the content of this get parameter is used as value for the cookie * the cookie expires after 20 seconds * the JS code checks every 500 milliseconds for the cookie -> if the cookie is set the request returned and the download is started
* Update license headersJenkins for ownCloud2015-03-261-20/+25
|
* Revert "Updating license headers"Morris Jobke2015-02-261-24/+21
| | | | This reverts commit 6a1a4880f0d556fb090f19a5019fec31916f5c36.
* Updating license headersJenkins for ownCloud2015-02-231-21/+24
|
* Manually type-case all AJAX filesLukas Reschke2015-02-131-2/+2
| | | | | | This enforces proper types on POST and GET arguments where I considered it sensible. I didn't update some as I don't know what kind of values they would support :see_no_evil: Fixes https://github.com/owncloud/core/issues/14196 for core
* Check for existence of $_GET keysLukas Reschke2015-01-141-2/+2
| | | | `$dir` may for example very well not get passed at well.
* kill OC::$sessionJörn Friedrich Dreyer2014-08-291-1/+1
| | | | | | | | | | | | maintain deprecated \OC::$session when getting or setting the session via the server container or UserSession restore order os OC::$session and OC::$CLI remove unneded initialization of dummy session write back session when $useCustomSession is true log warning when deprecated app is used
* Merge branch 'master' into load-apps-proper-masterThomas Müller2014-03-211-0/+1
|\ | | | | | | | | | | | | Conflicts: apps/files/ajax/rawlist.php cron.php ocs/v1.php
| * close the session on all file operationsThomas Müller2014-03-101-0/+1
| |
* | remove superfluous $RUNTIME_APPTYPESThomas Müller2014-02-061-6/+0
|/
* Compare result are already true/falseBart Visscher2013-08-171-1/+1
|
* Check expected type after JSON decode instead of checking what is not expected.Andreas Fischer2013-08-071-1/+1
| | | | This will also allow "true" and "false" as filenames instead of only "null".
* Revert "FIX: Download of files named "true" or "false" impossible"Roland Hager2013-06-121-2/+1
| | | | | This reverts commit d2d71c8797f7e7b51e55bec4217738faaf6a08ca. which was accidentally commited
* FIX: Download of files named "true" or "false" impossibleRoland Hager2013-06-121-1/+2
| | | | | | | It was not possible to download a file called "true" or "false" (caseinsensitive) when clicking the link "download" due to the result of json_decode(). Both cases are now implicitly checked. Hotfix provided by Herbert Pophal
* remove debug outputBjörn Schießle2013-03-071-2/+1
|
* json encode list of filesBjörn Schießle2013-03-071-1/+8
|
* remove superfluous ?> at the end of .php files (left out apps/*/templates)Jörn Friedrich Dreyer2012-07-091-1/+0
|
* Add HEAD request management for files ajax/download.phpBrice Maron2012-05-241-1/+1
|
* removing executable bit - againThomas Mueller2012-05-151-0/+0
|
* ported checkLoggedIn and checkAdminFrank Karlitschek2012-05-011-1/+1
|
* move files to app folderGeorg Ehrke2012-04-181-0/+37