mirror of
https://github.com/php/php-src.git
synced 2024-09-27 04:47:22 +00:00
- Fixed build
This commit is contained in:
parent
7c111e1e80
commit
091ef5362f
@ -551,7 +551,7 @@ PHP_FUNCTION(mime_content_type)
|
||||
char resolved_path[MAXPATHLEN];
|
||||
|
||||
if (*Z_STRVAL_P(what) && VCWD_REALPATH(Z_STRVAL_P(what), resolved_path)) {
|
||||
if ((PG(safe_mode) && (!php_checkuid(resolved_path, NULL, CHECKUID_CHECK_FILE_AND_DIR))) || php_check_open_basedir(resolved_path TSRMLS_CC)) {
|
||||
if (php_check_open_basedir(resolved_path TSRMLS_CC)) {
|
||||
goto cleanup;
|
||||
}
|
||||
ret_val = (char *) magic_file(magic, resolved_path);
|
||||
|
Loading…
Reference in New Issue
Block a user