mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-05 05:04:31 +00:00
Docs: Typo correction in validate_file() comments.
See #53399. git-svn-id: https://develop.svn.wordpress.org/trunk@52416 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -5900,7 +5900,7 @@ function validate_file( $file, $allowed_files = array() ) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
// More than one occurence of `../` is not allowed:
|
||||
// More than one occurrence of `../` is not allowed:
|
||||
if ( preg_match_all( '#\.\./#', $file, $matches, PREG_SET_ORDER ) && ( count( $matches ) > 1 ) ) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user