mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fix #68291: 404 on urls with '+'
URI paths have to be treated according to RFC 3986 by the CLI web server, not as application/x-www-form-urlencoded.
This commit is contained in:
parent
f9ece83994
commit
fd94c92171
2 changed files with 23 additions and 2 deletions
|
@ -98,7 +98,7 @@
|
|||
#include "ext/standard/file.h" /* for php_set_sock_blocking() :-( */
|
||||
#include "ext/standard/php_smart_str.h"
|
||||
#include "ext/standard/html.h"
|
||||
#include "ext/standard/url.h" /* for php_url_decode() */
|
||||
#include "ext/standard/url.h" /* for php_raw_url_decode() */
|
||||
#include "ext/standard/php_string.h" /* for php_dirname() */
|
||||
#include "php_network.h"
|
||||
|
||||
|
@ -1577,7 +1577,7 @@ static void normalize_vpath(char **retval, size_t *retval_len, const char *vpath
|
|||
return;
|
||||
}
|
||||
|
||||
decoded_vpath_end = decoded_vpath + php_url_decode(decoded_vpath, vpath_len);
|
||||
decoded_vpath_end = decoded_vpath + php_raw_url_decode(decoded_vpath, vpath_len);
|
||||
|
||||
#ifdef PHP_WIN32
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue