From 87b4f72ae7825453bb1cf93cfdf3e3169a92ef07 Mon Sep 17 00:00:00 2001 From: Richard Walters Date: Wed, 24 Oct 2018 13:38:18 -0700 Subject: Uri: fix bug in percent-encoding of character codes 0x80-0xff Can't treat characters using "char" type because it's signed. --- src/Uri.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Uri.cpp b/src/Uri.cpp index 51d14f4..fb9e1f8 100644 --- a/src/Uri.cpp +++ b/src/Uri.cpp @@ -520,7 +520,7 @@ namespace { const Uri::CharacterSet& allowedCharacters ) { std::string encodedElement; - for (auto c: element) { + for (uint8_t c: element) { if (allowedCharacters.Contains(c)) { encodedElement.push_back(c); } else { -- cgit v1.2.3