mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Merge branch 'PHP-7.2'
* PHP-7.2: Fixed bug #76333 PHP built-in server does not find files if root path contains special characters
This commit is contained in:
commit
038a2e4756
1 changed files with 3 additions and 1 deletions
|
@ -2016,9 +2016,11 @@ static int php_cli_server_begin_send_static(php_cli_server *server, php_cli_serv
|
|||
' ' == client->request.path_translated[client->request.path_translated_len-1])) {
|
||||
return php_cli_server_send_error_page(server, client, 500);
|
||||
}
|
||||
#endif
|
||||
|
||||
fd = client->request.path_translated ? php_win32_ioutil_open(client->request.path_translated, O_RDONLY): -1;
|
||||
#else
|
||||
fd = client->request.path_translated ? open(client->request.path_translated, O_RDONLY): -1;
|
||||
#endif
|
||||
if (fd < 0) {
|
||||
return php_cli_server_send_error_page(server, client, 404);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue