improved invalid filename character replacement
This commit is contained in:
parent
ba12527c5a
commit
fbccefb70b
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue