From 9b57534f2a497dc0d93fe9891742e2895ad5fabc Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Thu, 1 Feb 2024 11:41:19 +0100 Subject: [PATCH] #12751 fixed vul --- pandora_console/godmode/servers/plugin.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pandora_console/godmode/servers/plugin.php b/pandora_console/godmode/servers/plugin.php index 39acc45c21..d8bc3b47b9 100644 --- a/pandora_console/godmode/servers/plugin.php +++ b/pandora_console/godmode/servers/plugin.php @@ -262,7 +262,9 @@ if ($filemanager) { $contentFile = str_replace("\n", "\r\n", $contentFile); } - $result = file_put_contents($location_file, $contentFile); + if (empty($location_file) === false && file_exists($location_file) === true) { + $result = file_put_contents($location_file, $contentFile); + } } $id_plugin = (int) get_parameter('id_plugin', 0);