mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
Remove duplicated checks.
This commit is contained in:
parent
e11e0b0ec0
commit
c528157123
1 changed files with 0 additions and 8 deletions
|
@ -1848,14 +1848,6 @@ PHP_FUNCTION(copy)
|
|||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
if (PG(safe_mode) &&(!php_checkuid(Z_STRVAL_PP(target), NULL, CHECKUID_CHECK_FILE_AND_DIR))) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
if (php_check_open_basedir(Z_STRVAL_PP(target) TSRMLS_CC)) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
if (php_copy_file(Z_STRVAL_PP(source), Z_STRVAL_PP(target) TSRMLS_CC)==SUCCESS) {
|
||||
RETURN_TRUE;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue