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