mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-03-08 06:07:00 +01:00
Properly handle non-ascii characters in uris in HTTPParser.
This commit is contained in:
parent
eb33d812d0
commit
1cb112f64c
@ -267,7 +267,7 @@ int HTTPParser::on_message_begin() {
|
|||||||
int HTTPParser::on_url(const char *at, size_t length) {
|
int HTTPParser::on_url(const char *at, size_t length) {
|
||||||
ERR_FAIL_COND_V(!_request.is_valid(), 0);
|
ERR_FAIL_COND_V(!_request.is_valid(), 0);
|
||||||
|
|
||||||
String s = chr_len_to_str(at, length);
|
String s = chr_len_to_str(at, length).uri_decode().strip_edges();
|
||||||
|
|
||||||
#if MESSAGE_DEBUG
|
#if MESSAGE_DEBUG
|
||||||
ERR_PRINT("url " + s);
|
ERR_PRINT("url " + s);
|
||||||
|
Loading…
Reference in New Issue
Block a user