Skip to content

Commit 7ecb839

Browse files
authored
Merge commit from fork
Advisory fix 1
2 parents a2755d3 + 709df81 commit 7ecb839

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lgsl_files/lgsl_list.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
$uri = $_SERVER['REQUEST_URI'];
2121

2222
if ($lgsl_config['preloader']) {
23-
$uri = $_SERVER['HTTP_REFERER'];
23+
$uri = htmlspecialchars($_SERVER['HTTP_REFERER'], ENT_QUOTES, 'UTF-8');
2424
}
2525

2626
$server_list = lgsl_query_group(array("type" => $type, "game" => $game, "page" => $page));
@@ -142,4 +142,4 @@
142142
$output .= "<div style='text-align:center; font-family:tahoma; font-size:9px; padding: 33px 0 11px 0;'><a href='https://github.com/tltneon/lgsl' style='text-decoration:none'>".lgsl_version()."</a></div>";
143143
//--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
144144
if ($lgsl_config['preloader'])
145-
echo $output;
145+
echo $output;

0 commit comments

Comments
 (0)