From: Ricardo Garcia Date: Tue, 29 Jun 2010 09:10:12 +0000 (+0200) Subject: Forbid forward slash in win32 file names (fixes issue #147) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=ca6a11fa59aad97e861442045032e585eceabf1a;p=youtube-dl Forbid forward slash in win32 file names (fixes issue #147) --- diff --git a/youtube-dl b/youtube-dl index 5e98dfde4..ea4b3fded 100755 --- a/youtube-dl +++ b/youtube-dl @@ -99,7 +99,7 @@ def sanitize_open(filename, open_mode): return (stream, filename) except (IOError, OSError), err: # In case of error, try to remove win32 forbidden chars - filename = re.sub(ur'[<>:"\|\?\*]', u'#', filename) + filename = re.sub(ur'[/<>:"\|\?\*]', u'#', filename) # An exception here should be caught in the caller stream = open(filename, open_mode)