summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-02-18 18:35:27 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-03-09 10:38:38 +0100
commite28d314b53b82d5b71d16b7749563337d562dbe5 (patch)
treefc47370aebda613ec3ce9fee5d5aca9b96b06f1f /lib
parent49e1a81eba45fe33e00c217758656cf9201ec0cd (diff)
downloadnextcloud-server-e28d314b53b82d5b71d16b7749563337d562dbe5.tar.gz
nextcloud-server-e28d314b53b82d5b71d16b7749563337d562dbe5.zip
deprecate isValidFileName()
Diffstat (limited to 'lib')
-rw-r--r--lib/private/util.php1
-rw-r--r--lib/public/util.php1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/util.php b/lib/private/util.php
index 4c60af88189..0e5d08e180e 100644
--- a/lib/private/util.php
+++ b/lib/private/util.php
@@ -1416,6 +1416,7 @@ class OC_Util {
*
* @param string $file file name to check
* @return bool true if the file name is valid, false otherwise
+ * @deprecated use \OC\Files\View::verifyPath()
*/
public static function isValidFileName($file) {
$trimmed = trim($file);
diff --git a/lib/public/util.php b/lib/public/util.php
index e6e14a26e01..aa6cd5ba012 100644
--- a/lib/public/util.php
+++ b/lib/public/util.php
@@ -497,6 +497,7 @@ class Util {
* Returns whether the given file name is valid
* @param string $file file name to check
* @return bool true if the file name is valid, false otherwise
+ * @deprecated use \OC\Files\View::verifyPath()
*/
public static function isValidFileName($file) {
return \OC_Util::isValidFileName($file);