Browse Source

Fixed bug #42027 is_file() / is_dir() matches file/dirnames with wildcard char or trailing slash

PHAR_1_2
Dmitry Stogov 19 years ago
parent
commit
46f26a1aac
  1. 7
      TSRM/tsrm_virtual_cwd.c

7
TSRM/tsrm_virtual_cwd.c

@ -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…
Cancel
Save