From: Jeroen H. <vex...@gm...> - 2010-01-09 22:52:34
|
Hi, A friend of mine just ran into a corner-case bug in the url_encode function in "boost/network/protocol/http/impl/message.ipp". In the current 0.5-devel tree it's on line 82, 'sprintf(encode_buf+1, "%2X", str[pos]);' to be specific. The format string there should be changed to "%02X" to reflect the zero padding (instead of the default space padding), as one-character letters such as '\n' are now encoded as '% A' (space, A) instead of '%0A' (zero, A). Thanks, Jeroen |