From: Wez Furlong Date: Thu, 13 Feb 2003 17:37:17 +0000 (+0000) Subject: MFH: Another IS_SLASH fix. X-Git-Tag: php-4.3.2RC1~225 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=45894683e922177cde74e2a1e2f2cbf569e119ac;p=php MFH: Another IS_SLASH fix. --- diff --git a/main/php_open_temporary_file.c b/main/php_open_temporary_file.c index 4cec5ba68a..eff0393eb1 100644 --- a/main/php_open_temporary_file.c +++ b/main/php_open_temporary_file.c @@ -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 = "/";