Skip to content

Commit 07ad519

Browse files
committed
Update cgi_main.c
1 parent 88c9acb commit 07ad519

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

sapi/cgi/cgi_main.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1250,7 +1250,10 @@ static void init_request_info(fcgi_request *request)
12501250
*/
12511251
if (script_path_translated &&
12521252
(script_path_translated_len = strlen(script_path_translated)) > 0 &&
1253-
(IS_SLASH(script_path_translated[script_path_translated_len-1]) ||
1253+
(script_path_translated[script_path_translated_len-1] == '/' ||
1254+
#ifdef PHP_WIN32
1255+
script_path_translated[script_path_translated_len-1] == '\\' ||
1256+
#endif
12541257
(real_path = tsrm_realpath(script_path_translated, NULL)) == NULL)
12551258
) {
12561259
char *pt = estrndup(script_path_translated, script_path_translated_len);

0 commit comments

Comments
 (0)