mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
- security fixes;
- download last upgrades fixes;
This commit is contained in:
@@ -171,7 +171,8 @@ if ( ! class_exists( 'um\core\Files' ) ) {
|
||||
}
|
||||
}
|
||||
|
||||
if ( validate_file( $file_path ) !== 0 ) {
|
||||
//validate traversal file
|
||||
if ( validate_file( $file_path ) === 1 ) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -215,7 +216,8 @@ if ( ! class_exists( 'um\core\Files' ) ) {
|
||||
}
|
||||
}
|
||||
|
||||
if ( validate_file( $file_path ) !== 0 ) {
|
||||
//validate traversal file
|
||||
if ( validate_file( $file_path ) === 1 ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user