mirror of
https://github.com/php/php-src.git
synced 2024-11-28 20:34:29 +08:00
Another IS_SLASH fix.
This commit is contained in:
parent
7fffe4338a
commit
cddcaf737f
@ -122,7 +122,7 @@ static FILE *php_do_open_temporary_file(const char *path, const char *pfx, char
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (path[strlen(path)-1] == '/') {
|
||||
if (IS_SLASH(path[strlen(path)-1])) {
|
||||
trailing_slash = "";
|
||||
} else {
|
||||
trailing_slash = "/";
|
||||
|
Loading…
Reference in New Issue
Block a user