From 64b27ab5dff1afeb1d526c44794da9d5176f317c Mon Sep 17 00:00:00 2001 From: midoks Date: Sat, 2 Jul 2022 13:58:37 +0800 Subject: [PATCH] Update index.py --- plugins/pureftp/index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/pureftp/index.py b/plugins/pureftp/index.py index 597216b0d..bdce016f1 100755 --- a/plugins/pureftp/index.py +++ b/plugins/pureftp/index.py @@ -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']