From 6847755aef46d24041befc7c8ae29b3fedec8d44 Mon Sep 17 00:00:00 2001 From: Leonard Jonathan Oh Date: Sun, 10 Mar 2024 04:31:06 +0000 Subject: [PATCH] Fix (bf2sclone): Fix my-leaderboard not loading when cookie is set --- src/bf2sclone/leaderboard.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bf2sclone/leaderboard.inc.php b/src/bf2sclone/leaderboard.inc.php index d1e00081..66e2ee86 100644 --- a/src/bf2sclone/leaderboard.inc.php +++ b/src/bf2sclone/leaderboard.inc.php @@ -31,6 +31,7 @@ function get_pid_txt() function getLeaderBoardEntries($LEADERBOARD) { + $LEADERBOARD = mysqli_real_escape_string($GLOBALS['link'], $LEADERBOARD); include( ROOT . DS . 'queries'. DS .'getLeaderBoardEntry.php' ); // imports the correct sql statement $result = mysqli_query($GLOBALS['link'], $query) or die('Query failed: ' . mysqli_error($GLOBALS['link'])); $data = array();