X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Findex_wr.php;h=3c97733dc67179ff5970d087f64d08f0dfa7957a;hb=5d823712fb300643950dba20667fb9a277145ab9;hp=51410928e14637a1e1dd538db5566f4bc27a5b3d;hpb=2e7430e0fc225c96177e7886071960d093ffd89e;p=brisk.git diff --git a/web/index_wr.php b/web/index_wr.php index 5141092..3c97733 100644 --- a/web/index_wr.php +++ b/web/index_wr.php @@ -212,7 +212,7 @@ else if ($argz[0] == 'warranty') { if (($wa_lock = Warrant::lock_data(TRUE)) != FALSE) { if (($fp = @fopen(LEGAL_PATH."/warrant.txt", 'a')) != FALSE) { /* Unix time | session | nickname | IP | where was | mesg */ - fwrite($fp, sprintf("%ld|%s|%s|%s|\n", $curtime, $user->name, xcapelt(urldecode($cli_name)), xcapelt(urldecode($cli_email)))); + fwrite($fp, sprintf("%ld|%s|%s|%s|\n", $curtime, xcapelt($user->name), xcapelt(urldecode($cli_name)), xcapelt(urldecode($cli_email)))); fclose($fp); } Warrant::unlock_data($wa_lock); @@ -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 ||