Skip to content

Commit

Permalink
XSS fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kestasjk committed Jul 23, 2021
1 parent 80d2d46 commit 721dfab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gamepanel/gamehome.php
Expand Up @@ -196,6 +196,7 @@ function links()
{
return '<div class="bar homeGameLinks barAlt'.libHTML::alternate().'">
<form action="#" method="post">
'.libAuth::formTokenHTML().'
<a href="board.php?gameID='.$this->id.'">'.l_t('Open').'</a>
<input type="hidden" value="'.$this->id.'" name="gameToggleName" />
<input type="submit" title="Turn on/off the notifications for this game." style="float: right;" class = "home-submit toggle-notice" name="submit" value="'.$SubmitName.'"/>
Expand All @@ -207,6 +208,7 @@ function links()
return '<div class="bar homeGameLinks barAlt'.libHTML::alternate().'">
<form action="#" method="post">
'.libAuth::formTokenHTML().'
<a href="board.php?gameID='.$this->id.'#gamePanel">'.l_t('Open').'</a>
<input type="hidden" value="'.$this->id.'" name="gameToggleName" />
<input type="submit" title="Turn on/off the notifications for this game." style="float: right;" class = "home-submit toggle-notice" name="submit" value="'.$SubmitName.'"/>
Expand Down
2 changes: 2 additions & 0 deletions index.php
Expand Up @@ -52,6 +52,8 @@

if ($User->type['User'] and $gameToggleID > 0)
{
libAuth::formToken_Valid();

$noticesStatus = 5;
list($noticesStatus) = $DB->sql_row("SELECT hideNotifications FROM wD_Members WHERE userID =".$User->id." and gameID =".$gameToggleID);

Expand Down

0 comments on commit 721dfab

Please sign in to comment.