diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2016-11-22 12:55:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-22 12:55:54 +0100 |
commit | df215625f195c266bc7bc38577f50c088f23df92 (patch) | |
tree | 70707a8bf54e662f17a24c66c4347b2e80f7f0d1 /lib/public | |
parent | b8732a1a534c49719f9f4e6fa4a6fc6b1e9e9090 (diff) | |
parent | 558f169671208fb349bb40de7b6e0abb02097832 (diff) | |
download | nextcloud-server-df215625f195c266bc7bc38577f50c088f23df92.tar.gz nextcloud-server-df215625f195c266bc7bc38577f50c088f23df92.zip |
Merge pull request #1972 from nextcloud/invalid-files-from-scanner
Make sure we don't scan files that can not be accessed
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/Files/EmptyFileNameException.php | 31 | ||||
-rw-r--r-- | lib/public/Files/InvalidDirectoryException.php | 31 |
2 files changed, 62 insertions, 0 deletions
diff --git a/lib/public/Files/EmptyFileNameException.php b/lib/public/Files/EmptyFileNameException.php new file mode 100644 index 00000000000..22cdd5e805d --- /dev/null +++ b/lib/public/Files/EmptyFileNameException.php @@ -0,0 +1,31 @@ +<?php +/** + * @copyright Copyright (c) 2016 Joas Schilling <coding@schilljs.com> + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + +namespace OCP\Files; + +/** + * Class EmptyFileNameException + * + * @package OCP\Files + * @since 9.2.0 + */ +class EmptyFileNameException extends InvalidPathException { +} diff --git a/lib/public/Files/InvalidDirectoryException.php b/lib/public/Files/InvalidDirectoryException.php new file mode 100644 index 00000000000..a82dc0829e2 --- /dev/null +++ b/lib/public/Files/InvalidDirectoryException.php @@ -0,0 +1,31 @@ +<?php +/** + * @copyright Copyright (c) 2016 Joas Schilling <coding@schilljs.com> + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + +namespace OCP\Files; + +/** + * Class InvalidDirectoryException + * + * @package OCP\Files + * @since 9.2.0 + */ +class InvalidDirectoryException extends InvalidPathException { +} |