diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-03-08 21:58:11 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-03-27 16:23:06 +0200 |
commit | 53447ae2b2066d751b2a998c3ed0a2692c72f6c4 (patch) | |
tree | caf811dbcf1b7ea8900f2e6d8a72b65148039b5b /lib/public/Files/File.php | |
parent | 709589f2dbe3ce49f3bd71e1531e723353ee631d (diff) | |
download | nextcloud-server-53447ae2b2066d751b2a998c3ed0a2692c72f6c4.tar.gz nextcloud-server-53447ae2b2066d751b2a998c3ed0a2692c72f6c4.zip |
Throw an exception if file_put_contents fails
* This will help with AppData hardening etc
* Introduced a GenericFileException for if nothing else is appropiate
- Maybe the other File exceptions should base on this?
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/public/Files/File.php')
-rw-r--r-- | lib/public/Files/File.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/public/Files/File.php b/lib/public/Files/File.php index 8b57b3cfd87..0f052bc66ad 100644 --- a/lib/public/Files/File.php +++ b/lib/public/Files/File.php @@ -53,7 +53,7 @@ interface File extends Node { * * @param string $data * @throws \OCP\Files\NotPermittedException - * @return void + * @throws \OCP\Files\GenericFileException * @since 6.0.0 */ public function putContent($data); |