diff options
author | Richard Walters <rwalters@digitalstirling.com> | 2018-10-24 13:38:18 -0700 |
---|---|---|
committer | Richard Walters <rwalters@digitalstirling.com> | 2018-10-24 13:38:18 -0700 |
commit | 87b4f72ae7825453bb1cf93cfdf3e3169a92ef07 (patch) | |
tree | 393cbce9cb82fc3a023cbf71a0906af616f15441 /src/Uri.cpp | |
parent | 145ac0b6677a480e0a90b9870d8f6042d7cca9c7 (diff) |
Uri: fix bug in percent-encoding of character codes 0x80-0xff
Can't treat characters using "char" type because it's signed.
Diffstat (limited to 'src/Uri.cpp')
-rw-r--r-- | src/Uri.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |