?? ??? 2004, Version 4.3.8
- Fixed bug #28670 (WWW-Authentication header mangling with PCRE in safe_mode
adds extra spaces). (Ilia)
+- Fixed bug #28668 (glob() does not work with relative paths on Windows).
+ (Ilia)
- Fixed bug #28649 (Proper glob() return value on Linux when there are no
matches). (Ilia)
- Fixed bug #28632 (Prevent open_basedir bypass via MySQL's LOAD DATA LOCAL).
cwd[0] = '\0';
}
#ifdef PHP_WIN32
- if (!IS_SLASH(cwd[0])) {
+ if (IS_SLASH(*pattern)) {
cwd[2] = '\0';
- cwd_skip = 3;
}
-#else
- cwd_skip = strlen(cwd)+1;
#endif
+ cwd_skip = strlen(cwd)+1;
+
snprintf(work_pattern, MAXPATHLEN, "%s%c%s", cwd, DEFAULT_SLASH, pattern);
pattern = work_pattern;
}