We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88c9acb commit 07ad519Copy full SHA for 07ad519
1 file changed
sapi/cgi/cgi_main.c
@@ -1250,7 +1250,10 @@ static void init_request_info(fcgi_request *request)
1250
*/
1251
if (script_path_translated &&
1252
(script_path_translated_len = strlen(script_path_translated)) > 0 &&
1253
- (IS_SLASH(script_path_translated[script_path_translated_len-1]) ||
+ (script_path_translated[script_path_translated_len-1] == '/' ||
1254
+#ifdef PHP_WIN32
1255
+ script_path_translated[script_path_translated_len-1] == '\\' ||
1256
+#endif
1257
(real_path = tsrm_realpath(script_path_translated, NULL)) == NULL)
1258
) {
1259
char *pt = estrndup(script_path_translated, script_path_translated_len);
0 commit comments