diff options
| author | Sergey M․ <dstftw@gmail.com> | 2015-03-08 22:08:48 +0600 | 
|---|---|---|
| committer | Sergey M․ <dstftw@gmail.com> | 2015-03-08 22:08:48 +0600 | 
| commit | f18ef2d14463a13d80e967d1b18ece6a076f60fa (patch) | |
| tree | 0516a7bee703a243dc33fea502c4dbf7c8ca43b1 /youtube_dl/utils.py | |
| parent | 1bb5c511a551ba7c5d3179d2d3a124f0977e74b4 (diff) | |
[utils] Disallow trailing dot in sanitize_path for a path part
Diffstat (limited to 'youtube_dl/utils.py')
| -rw-r--r-- | youtube_dl/utils.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index e511232ca..d5597d514 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -319,7 +319,7 @@ def sanitize_path(s):      if unc_or_drive:          norm_path.pop(0)      sanitized_path = [ -        re.sub('[/<>:"\\|\\\\?\\*]', '#', path_part) +        re.sub('(?:[/<>:"\\|\\\\?\\*]|\.$)', '#', path_part)          for path_part in norm_path]      if unc_or_drive:          sanitized_path.insert(0, unc_or_drive + os.path.sep) | 
