Fix a critical bug with the judging team assignments, the team name needs to be rawurlencoded before put into the URL!

This commit is contained in:
james 2006-03-30 17:46:37 +00:00
parent 7ea92bbcb4
commit a3cec472ac

View File

@ -327,7 +327,7 @@ function switchjudgeinfo()
foreach($team['members'] AS $member)
{
echo "<tr><td>";
echo "<a onclick=\"return confirmClick('Are you sure you want to remove this judge from this team?')\" href=\"judges_teams_members.php?action=del&team_id=".$team['id']."&team_num=".$team['num']."&team_name=".htmlspecialchars($team['name'])."&judges_id=".$member['id']."\"><img border=0 src=\"".$config['SFIABDIRECTORY']."/images/16/button_cancel.".$config['icon_extension']."\"></a>";
echo "<a onclick=\"return confirmClick('Are you sure you want to remove this judge from this team?')\" href=\"judges_teams_members.php?action=del&team_id=".$team['id']."&team_num=".$team['num']."&judges_id=".$member['id']."&team_name=".rawurlencode($team['name'])."\"><img border=0 src=\"".$config['SFIABDIRECTORY']."/images/16/button_cancel.".$config['icon_extension']."\"></a>";
echo "</td><td width=\"100%\">";
if($member['captain']=="yes")
{
@ -350,7 +350,7 @@ function switchjudgeinfo()
}
echo "<tr><td colspan=\"2\">";
echo "<a onclick=\"return confirmClick('Are you sure you want to empty all judges from this team?')\" href=\"judges_teams_members.php?action=empty&team_id=".$team['id']."&team_num=".$team['num']."&team_name=".htmlspecialchars($team['name'])."\">";
echo "<a onclick=\"return confirmClick('Are you sure you want to empty all judges from this team?')\" href=\"judges_teams_members.php?action=empty&team_id=".$team['id']."&team_num=".$team['num']."&team_name=".rawurlencode($team['name'])."\">";
echo " ".i18n("Empty All Members")." ";
echo "<img border=0 src=\"".$config['SFIABDIRECTORY']."/images/16/button_cancel.".$config['icon_extension']."\">";
echo "</a>";