Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix boost::network::uri::decode error - out of range because of '%'#553

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
deanberris merged 7 commits intocpp-netlib:0.11-develfromcnagune:0.11-devel-fix-decode-percent
Sep 11, 2015
Merged
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
fix boost::network::uri::decode error - out of range because of '%'
  • Loading branch information
@cnagune
cnagune committedAug 13, 2015
commitbe97dfedbeb000a9c85904dbf994786ca56cba72
6 changes: 6 additions & 0 deletionsboost/network/uri/decode.hpp
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -59,8 +59,14 @@ OutputIterator decode(const InputIterator &in_begin,
while (it != in_end) {
if (*it == '%') {
++it;
if (it == in_end) {
throw std::runtime_error("decoding fail because of '%'");
}
value_type v0 = detail::letter_to_hex(*it);
++it;
if (it == in_end) {
throw std::runtime_error("decoding fail because of '%'");
}
value_type v1 = detail::letter_to_hex(*it);
++it;
*out++ = 0x10 * v0 + v1;
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp