summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
Diffstat (limited to 'module')
-rw-r--r--module/network/HTTPChunk.py4
-rw-r--r--module/plugins/hoster/BasePlugin.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/module/network/HTTPChunk.py b/module/network/HTTPChunk.py
index d17177ee7..84a2acc5f 100644
--- a/module/network/HTTPChunk.py
+++ b/module/network/HTTPChunk.py
@@ -263,7 +263,7 @@ class HTTPChunk(HTTPRequest):
m = search("filename(?P<type>=|\*=(?P<enc>.+)'')(?P<name>.*)", line)
if m:
- name = remove_chars(m.groupdict()['name'], "\"';").strip()
+ name = remove_chars(m.groupdict()['name'], "\"';/").strip()
self.p._name = name
self.log.debug("Content-Disposition: %s" % name)
@@ -295,4 +295,4 @@ class HTTPChunk(HTTPRequest):
""" closes everything, unusable after this """
if self.fp: self.fp.close()
self.c.close()
- if hasattr(self, "p"): del self.p \ No newline at end of file
+ if hasattr(self, "p"): del self.p
diff --git a/module/plugins/hoster/BasePlugin.py b/module/plugins/hoster/BasePlugin.py
index 1ac33931f..b495be873 100644
--- a/module/plugins/hoster/BasePlugin.py
+++ b/module/plugins/hoster/BasePlugin.py
@@ -86,7 +86,7 @@ class BasePlugin(Hoster):
disp = m.groupdict()
self.logDebug(disp)
if not disp['enc']: disp['enc'] = 'utf-8'
- name = remove_chars(disp['name'], "\"';").strip()
+ name = remove_chars(disp['name'], "\"';/").strip()
name = unicode(unquote(name), disp['enc'])
if not name: name = url