From a3935df69ce6b762a9c589a67902b31db12f4901 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 30 Apr 2026 13:24:34 +0000 Subject: [PATCH] Fix PHP 8 fatal error: remove removed get_magic_quotes_gpc() call in cfg_text_replace.php Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/8cb6b77b-f926-4eaf-91db-37d989febd39 Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com> --- modules/gamemanager/cfg_text_replace.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/modules/gamemanager/cfg_text_replace.php b/modules/gamemanager/cfg_text_replace.php index 4cec9662..11ef1cea 100644 --- a/modules/gamemanager/cfg_text_replace.php +++ b/modules/gamemanager/cfg_text_replace.php @@ -249,8 +249,6 @@ foreach ((array)$file_replacements as $filepath => $replacements) } } - if ( get_magic_quotes_gpc() ) - $file_content=stripslashes($file_content); } //echo "".$file_content.""; $remote->remote_writefile($server_home['home_path'] . "/" . $filepath, $file_content);