mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fix bug #71629: sync php_url_decode definition
This commit is contained in:
parent
0bd64b50b8
commit
d25e67eee6
2 changed files with 4 additions and 2 deletions
|
@ -22,7 +22,7 @@
|
|||
#include "php.h"
|
||||
#include "ext/standard/base64.h"
|
||||
|
||||
PHPAPI int php_url_decode(char *str, int len);
|
||||
PHPAPI size_t php_url_decode(char *str, size_t len);
|
||||
|
||||
/* Memory streams use a dynamic memory buffer to emulate a stream.
|
||||
* You can use php_stream_memory_open to create a readonly stream
|
||||
|
@ -730,7 +730,7 @@ static php_stream * php_stream_url_wrap_rfc2397(php_stream_wrapper *wrapper, con
|
|||
ilen = (int)ZSTR_LEN(base64_comma);
|
||||
} else {
|
||||
comma = estrndup(comma, dlen);
|
||||
dlen = php_url_decode(comma, (int)dlen);
|
||||
dlen = php_url_decode(comma, dlen);
|
||||
ilen = (int)dlen;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue