Skip to content

Commit

Permalink
Removing Validation::file() It was never implemented, and file valida…
Browse files Browse the repository at this point in the history
…tion can be a lengthy and complicated process. This is better implemented at the application level.
  • Loading branch information
markstory committed Oct 31, 2009
1 parent 6726b76 commit 403bd15
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions cake/libs/validation.php
Expand Up @@ -546,26 +546,6 @@ function extension($check, $extensions = array('gif', 'jpeg', 'png', 'jpg')) {
return false;
}

/**
* Check that value is a file name
*
* @param mixed $check Value to check
* @access public
* @todo finish implementation
*/
function file($check) {
// if (is_array($check)) {
// foreach ($check as $value) {
// if (!Validation::file($value)) {
// return false;
// }
// }
// return true;
// }
//
// return preg_match('/[\w| |_]+\.[\w]+/', $check);
}

/**
* Validation of an IPv4 address.
*
Expand Down

0 comments on commit 403bd15

Please sign in to comment.