mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
Fixed bug #42027 is_file() / is_dir() matches file/dirnames with wildcard char or trailing slash
This commit is contained in:
parent
5cdae5bdbb
commit
db97db9430
2
NEWS
2
NEWS
@ -62,6 +62,8 @@ PHP NEWS
|
||||
- Fixed bug #42072 (No warning message for clearstatcache() with arguments).
|
||||
(Ilia)
|
||||
- Fixed bug #42071 (ini scanner allows using NULL as option name). (Jani)
|
||||
- Fixed bug #42027 is_file() / is_dir() matches file/dirnames with wildcard
|
||||
char or trailing slash. (Dmitry)
|
||||
- Fixed bug #42019 (configure option --with-adabas=DIR does not work). (Jani)
|
||||
- Fixed bug #42015 (ldap_rename(): server error "DSA is unwilling to perform").
|
||||
(bob at mroczka dot com, Jani)
|
||||
|
@ -565,6 +565,13 @@ CWD_API int virtual_file_ex(cwd_state *state, const char *path, verify_path_func
|
||||
#endif
|
||||
no_realpath:
|
||||
|
||||
#ifdef TSRM_WIN32
|
||||
if (memchr(path, '*', path_length) ||
|
||||
memchr(path, '?', path_length)) {
|
||||
return 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
free_path = path_copy = tsrm_strndup(path, path_length);
|
||||
CWD_STATE_COPY(&old_state, state);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user