From: Matteo Nastasi (mop) Date: Sun, 4 Dec 2011 09:17:39 +0000 (+0100) Subject: cast to int for incoming table_idx values X-Git-Tag: 3.6.2 X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=3fec48e8ab3f9e2b937b7e476916eb42f630191e;p=brisk.git cast to int for incoming table_idx values --- diff --git a/web/briskin5/index_wr.php b/web/briskin5/index_wr.php index e755965..f358440 100644 --- a/web/briskin5/index_wr.php +++ b/web/briskin5/index_wr.php @@ -47,6 +47,7 @@ log_load("bin5/index_wr.php"); */ log_wr('COMM: '.$mesg); +$table_idx = (int)$table_idx; if ($table_idx < 0 || $table_idx >= TABLE_N) exit; diff --git a/web/index_wr.php b/web/index_wr.php index 5141092..43be553 100644 --- a/web/index_wr.php +++ b/web/index_wr.php @@ -503,7 +503,7 @@ else if ($user->stat == 'room') { } // Take parameters - $table_idx = $argz[1]; + $table_idx = (int)$argz[1]; $table = &$room->table[$table_idx]; if ($G_shutdown || $table->wakeup_time > $curtime ||