Fixed endless loop in open_basedir check

This commit is contained in:
Dmitry Stogov 2007-04-18 11:58:40 +00:00
parent 93dd417180
commit 72e7bfdedf

View File

@ -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';