improved invalid filename character replacement

This commit is contained in:
Arvid Norberg 2009-09-25 15:08:28 +00:00
parent ba12527c5a
commit fbccefb70b
2 changed files with 3 additions and 2 deletions

View File

@ -77,6 +77,7 @@ release 0.14.7
* fixed deadlock in natpmp
* resume data alerts are always posted, regardless of alert mask
* added wait_for_alert to python binding
* improved invalid filename character replacement
release 0.14.6

View File

@ -83,7 +83,7 @@ namespace libtorrent
bool valid_path_character(char c)
{
#ifdef TORRENT_WINDOWS
static const char invalid_chars[] = "&?<>\"|\b*:+";
static const char invalid_chars[] = "?<>\"|\b*:";
#else
static const char invalid_chars[] = "";
#endif
@ -111,7 +111,7 @@ namespace libtorrent
}
else
{
tmp_path += '.';
tmp_path += '_';
valid_encoding = false;
}
continue;