Skip to content
Snippets Groups Projects
Commit e28d314b authored by Thomas Müller's avatar Thomas Müller
Browse files

deprecate isValidFileName()

parent 49e1a81e
Branches
No related tags found
No related merge requests found
...@@ -1416,6 +1416,7 @@ class OC_Util { ...@@ -1416,6 +1416,7 @@ class OC_Util {
* *
* @param string $file file name to check * @param string $file file name to check
* @return bool true if the file name is valid, false otherwise * @return bool true if the file name is valid, false otherwise
* @deprecated use \OC\Files\View::verifyPath()
*/ */
public static function isValidFileName($file) { public static function isValidFileName($file) {
$trimmed = trim($file); $trimmed = trim($file);
......
...@@ -497,6 +497,7 @@ class Util { ...@@ -497,6 +497,7 @@ class Util {
* Returns whether the given file name is valid * Returns whether the given file name is valid
* @param string $file file name to check * @param string $file file name to check
* @return bool true if the file name is valid, false otherwise * @return bool true if the file name is valid, false otherwise
* @deprecated use \OC\Files\View::verifyPath()
*/ */
public static function isValidFileName($file) { public static function isValidFileName($file) {
return \OC_Util::isValidFileName($file); return \OC_Util::isValidFileName($file);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment