don't replace invalid path characters in non-path strings

This commit is contained in:
Arvid Norberg
2009-11-13 02:50:07 +00:00
parent 74f235cd2e
commit 8fdeeb0497
2 changed files with 5 additions and 5 deletions

View File

@@ -358,7 +358,7 @@ struct parse_state
namespace libtorrent
{
// defined in torrent_info.cpp
bool verify_encoding(std::string& target);
bool verify_encoding(std::string& target, bool path = true);
}
void find_control_url(int type, char const* string, parse_state& state);