mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
Fixed endless loop in open_basedir check
This commit is contained in:
parent
93dd417180
commit
72e7bfdedf
@ -151,6 +151,8 @@ PHPAPI int php_check_specific_open_basedir(const char *basedir, const char *path
|
||||
if (path_len > 1 && path_tmp[path_len - 2] == ':') {
|
||||
/* this is c:\, */
|
||||
path_tmp[path_len] = '\0';
|
||||
} else {
|
||||
path_tmp[path_len - 1] = '\0';
|
||||
}
|
||||
#else
|
||||
path_tmp[path_len - 1] = '\0';
|
||||
|
Loading…
Reference in New Issue
Block a user