diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-01-29 12:41:21 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-01-29 12:41:21 +0100 |
commit | 58c48fbbbac6b85732d6a4f44ccb1aa126d6117d (patch) | |
tree | 7e92714296d1a3006b7458ead27a790f2c583a11 /module/web/cnl_app.py | |
parent | merge from stable (diff) | |
download | pyload-58c48fbbbac6b85732d6a4f44ccb1aa126d6117d.tar.xz |
closed #523
Diffstat (limited to 'module/web/cnl_app.py')
-rw-r--r-- | module/web/cnl_app.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/module/web/cnl_app.py b/module/web/cnl_app.py index fe308ec04..b6a98a0a8 100644 --- a/module/web/cnl_app.py +++ b/module/web/cnl_app.py @@ -6,6 +6,8 @@ from urllib import unquote from base64 import standard_b64decode from binascii import unhexlify +from module.utils.fs import save_filename + from bottle import route, request, HTTPError from webinterface import PYLOAD, DL_ROOT, JS @@ -53,7 +55,7 @@ def addcrypted(): package = request.forms.get('referer', 'ClickAndLoad Package') dlc = request.forms['crypted'].replace(" ", "+") - dlc_path = join(DL_ROOT, package.replace("/", "").replace("\\", "").replace(":", "") + ".dlc") + dlc_path = join(DL_ROOT, save_filename(package) + ".dlc") dlc_file = open(dlc_path, "wb") dlc_file.write(dlc) dlc_file.close() |