aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Garcia <sarbalap+freshmeat@gmail.com>2010-06-29 11:10:12 +0200
committerRicardo Garcia <sarbalap+freshmeat@gmail.com>2010-10-31 11:28:17 +0100
commitca6a11fa59aad97e861442045032e585eceabf1a (patch)
treefc6a02b68549e16b87f157d865f3bd7edad90f21
parentde3ed1f84a5107461cdc79009702b214819bb008 (diff)
Forbid forward slash in win32 file names (fixes issue #147)
-rwxr-xr-xyoutube-dl2
1 files changed, 1 insertions, 1 deletions
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)