summaryrefslogtreecommitdiffstats
path: root/include/game.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/game.php')
-rw-r--r--include/game.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/game.php b/include/game.php
index 7c8064c..86fd53c 100644
--- a/include/game.php
+++ b/include/game.php
@@ -571,6 +571,17 @@ switch($mystatus)
{
/* user wants to play a solo */
+ /* double check input value */
+ $s = $_REQUEST['solo'];
+ $solos = array('trumpless','jack','queen','trump','club','spade','heart');
+ if (!in_array($s, $solos))
+ {
+ $messages[] = sprintf(_('There is a problem with the type of solo you selected (%s does not exist), please go back '.
+ 'and answer the <a href="%s">question</a> again.'),
+ $s,$INDEX.'?action=game&amp;me=$me&amp;in=yes');
+ break;
+ }
+
/* store the info in the user's hand info */
DB_set_solo_by_hash($me,$_REQUEST['solo']);
DB_set_sickness_by_hash($me,'solo');