Browse Source

deprecate isValidFileName()

remotes/origin/external-backend-ondemand
Thomas Müller 11 years ago
parent
commit
e28d314b53
  1. 1
      lib/private/util.php
  2. 1
      lib/public/util.php

1
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);

1
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);

Loading…
Cancel
Save