From 6f5f9d5c3e783633e1e4ddb6419b8fc74c755809 Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 8 Jul 2022 19:41:28 +0800 Subject: [PATCH] up --- plugins/php-apt/index.py | 2 +- plugins/php-yum/index.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/php-apt/index.py b/plugins/php-apt/index.py index 5545945db..d51416383 100755 --- a/plugins/php-apt/index.py +++ b/plugins/php-apt/index.py @@ -537,7 +537,7 @@ def getPhpinfo(version): mw.execShell("mkdir -p " + root_dir) mw.writeFile(root_dir + '/phpinfo.php', '') sock_data = mw.requestFcgiPHP(sock_file, '/phpinfo.php', root_dir) - os.system("rm -rf " + mw.getRootDir() + '/phpinfo') + os.system("rm -rf " + root_dir) phpinfo = str(sock_data, encoding='utf-8') return phpinfo diff --git a/plugins/php-yum/index.py b/plugins/php-yum/index.py index ee959e919..f397177e1 100755 --- a/plugins/php-yum/index.py +++ b/plugins/php-yum/index.py @@ -536,7 +536,7 @@ def getPhpinfo(version): mw.execShell("mkdir -p " + root_dir) mw.writeFile(root_dir + '/phpinfo.php', '') sock_data = mw.requestFcgiPHP(sock_file, '/phpinfo.php', root_dir) - os.system("rm -rf " + mw.getRootDir() + '/phpinfo') + os.system("rm -rf " + root_dir) phpinfo = str(sock_data, encoding='utf-8') return phpinfo