Update index.py

This commit is contained in:
midoks
2022-07-02 13:58:37 +08:00
parent 2f18e34f51
commit 64b27ab5df
+2 -2
View File
@@ -306,13 +306,13 @@ def getFtpList():
def addFtp():
import urllib
import urllib.parse
args = getArgs()
data = checkArgs(args, ['ftp_username', 'ftp_password', 'path', 'ps'])
if not data[0]:
return data[1]
path = urllib.request.unquote(args['path'])
path = urllib.parse.unquote(args['path'])
user = args['ftp_username']
pwd = args['ftp_password']
ps = args['ps']