summaryrefslogtreecommitdiffstats
path: root/lib/private/files.php
Commit message (Collapse)AuthorAgeFilesLines
* End processing when file is not foundLukas Reschke2015-05-221-0/+1
| | | | | | We have to end the processing when a file is not found or otherwise the method is proceeding and even sending invalid file paths to the sendfile methods. Due to nginx preventing directory traversals this is luckily not immediately exploitable. We should for hardening purposes however quit the script execution just as we do for 403 cases and others as well.
* a new approach to display the error messageBjoern Schiessle2015-05-181-40/+48
|
* Removing files_encryption left oversThomas Müller2015-04-071-1/+1
|
* Merge pull request #15229 from owncloud/response-setContentLengthHeaderThomas Müller2015-04-031-1/+1
|\ | | | | Add OC_Response::setContentLengthHeader() for Apache PHP SAPI workaround...
| * Add OC_Response::setContentLengthHeader() for Apache PHP SAPI workaround.Andreas Fischer2015-03-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | Do not send Content-Length headers with a value larger than PHP_INT_MAX (2147483647) on Apache PHP SAPI 32-bit. PHP will eat them and send 2147483647 instead. When X-Sendfile is enabled, Apache will send a correct Content-Length header, even for files larger than 2147483647 bytes. When X-Sendfile is not enabled, ownCloud will not send a Content-Length header. This prevents progress bars from working, but allows the actual transfer to work properly.
* | Require minimum 1 MiB upload limitRobin McCorkell2015-03-271-3/+7
| |
* | Merge pull request #14495 from owncloud/update-mailmap-01Thomas Müller2015-03-261-13/+32
|\ \ | |/ |/| Updating .mailmap
| * Update license headersJenkins for ownCloud2015-03-261-13/+32
| |
| * Revert "Updating license headers"Morris Jobke2015-02-261-32/+14
| | | | | | | | This reverts commit 6a1a4880f0d556fb090f19a5019fec31916f5c36.
| * Updating license headersJenkins for ownCloud2015-02-231-14/+32
| |
* | Removed simplified X-accel-redirect even furtherdratini02015-03-231-6/+1
| |
* | Changed the disputed while loop to a single if.dratini02015-03-231-2/+2
| |
* | Extending the X-accel redirect functionality with a more scalable approach.dratini02015-02-111-1/+10
| |
* | Revert "Fix: X-Accel-Redirect did not support custom data dir and local mounts"dratini02015-02-111-1/+1
| | | | | | | | This reverts commit f2075f803fc59918cc20071cf174d6b5f81f5eed.
* | Revert "removed a little duplication"dratini02015-02-111-1/+3
|/ | | | This reverts commit 31970ee7409ff2ed303b728ea4fd6f8d10302649.
* removed a little duplicationdratini02014-12-301-3/+1
|
* Fix: X-Accel-Redirect did not support custom data dir and local mountsdratini02014-12-301-1/+1
|
* Move constants from GET_TYPE to OC\Files so they can be autoloadedJoas Schilling2014-11-261-12/+9
|
* Add type hinting to functionsLukas Reschke2014-10-241-1/+1
| | | | It's only reasonable to have proper type hinting here which might even help us to catch bugs.
* Make 404 page easier to understandLukas Reschke2014-09-171-1/+0
| | | | Fixes https://github.com/owncloud/core/issues/11133
* Use secure mimetype for content deliveryLukas Reschke2014-09-081-1/+1
| | | | Adds some hardening against potential CSP bypassed.
* drop allowZIPdownload and maxZIPSize as optionsMorris Jobke2014-06-021-48/+0
|
* Squash 'a | b' into 'a|b', in /libRobin McCorkell2014-05-131-1/+1
|
* Merge pull request #8045 from josh4trunks/nginx_x-accel_send_uriVincent Petry2014-05-061-1/+4
|\ | | | | Send URI instead of filepath to NGINX for X-Accel
| * Send URI instead of filepath to NGINX for X-Acceljosh4trunks2014-04-031-1/+4
| |
* | Merge pull request #8023 from flyser/masterMorris Jobke2014-05-031-3/+1
|\ \ | | | | | | Fix setting the max-upload-size for really large values.
| * | Fix setting the max-upload-size for really large values.Fabian Henze2014-04-031-3/+1
| |/ | | | | | | php can only parse filesize units up to gigabytes, not terabytes or petabytes.
* | Link to previous directoryLukas Reschke2014-04-161-2/+2
| |
* | Use direct link instead of JSLukas Reschke2014-04-141-3/+2
|/ | | | | | | | | Due to our CSP policy this link won’t work as it it considered as inline Javascript. This commit replaces the link with a static link to the files app. Reimplementation of #8067 - fixes #7742
* Use the correct resolve method to resolve file storageVincent Petry2014-03-261-1/+2
| | | | | | | | When detecting whether the file to be downloaded is on external storage, the correct path needs to be used. It turns out that \OC\Files\View is needed to resolve the path correctly relative to the user's home.
* Merge branch 'zipstreamer' of https://github.com/McNetic/owncloud_core into ↵Thomas Müller2014-02-201-112/+101
|\ | | | | | | | | | | | | McNetic-zipstreamer Conflicts: lib/private/files.php
| * switched zip file creation to ZipStreamer to create zip files directly in memoryNicolai Ehemann2014-01-221-33/+9
| |
| * refactored/cleaned up lib/files.phpNicolai Ehemann2014-01-221-77/+84
| | | | | | | | | | | | cleaned up get() logic fixed get() to only send headers if requested (xsendfile could get in the way) do no longer readfile() when already using mod_xsendfile or similar
| * lib/files.php: make use of === instead of ==Nicolai Ehemann2014-01-181-4/+4
| |
* | Merge pull request #7195 from owncloud/files-selectallVincent Petry2014-02-191-1/+8
|\ \ | | | | | | Do not send file list for select all on Download/delete
| * | Do not send file list for select all on Download/deleteVincent Petry2014-02-131-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | - When all files are selected, do not send the whole file list - Download will trigger download for the parent folder, also works with root - Delete will send "allfiles" to the server that will find the file list or the passed directory by itself
* | | Scrutinizer Auto-FixesScrutinizer Auto-Fixer2014-02-191-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge branch 'master' into scrutinizer_documentation_patchesThomas Müller2014-02-141-1/+1
|\| | | | | | | | | | | | | | Conflicts: lib/private/appconfig.php
| * | Added isLocal() method to storage, used for xsendfileVincent Petry2014-02-061-1/+1
| | | | | | | | | | | | | | | | | | | | | Added isLocal() method to Storage to find out whether the storage is local or not. This method is used for the x-sendfile logic to find out whether to add the headers.
* | | polish documentation based on scrutinizer patchesJörn Friedrich Dreyer2014-02-061-2/+9
|/ /
* / use 'download.zip' as default name for zip downloads instead of 'owncloud.zip'Jörn Friedrich Dreyer2014-01-211-1/+1
|/
* Moved content disposition code+workarounds to OCP\ResponseVincent Petry2013-12-101-6/+1
| | | | | | | | | Added new OC\Response API called setContentDispositionHeader() that contains the needed workarounds for UTF8 and IE. Refactored download code to use the new API. Removed unused trashbin download file.
* XSendfile and encryption don't work togetherBart Visscher2013-12-061-0/+3
| | | | The file on disk is encrypted, and not readable on client systems
* fixing spelling and restructure sentenceThomas Müller2013-11-211-1/+1
|
* Fixed getLocalFile() condition for x-send-fileVincent Petry2013-11-201-3/+5
| | | | | | | | | | | | | Until now, addSendfileHeader() was called even when no x-send-file headers were set. Even though the method itself doesn't do anything, a call to getLocalFile() was done and would trigger a full download when using external storage. Additionally, the storage resolution code is wrong and always returns the local storage of the root filesystem, which caused the code to be run anyway. This commit fixes both issues.
* External storage space is now not counted in total spaceVincent Petry2013-11-181-2/+2
| | | | | | | Added argument to getFileInfo() to disable adding the size of mountpoints to a directory's size. Fixes #5924
* move the private namespace OC into lib/private - OCP will stay in lib/publicThomas Müller2013-09-301-0/+321
Conflicts: lib/private/vcategories.php