mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update index.py
This commit is contained in:
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user