X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=tools%2Fbddb%2Fbrlog.php;h=fccfbd011c295c668cd675b134a65b33b2997ae4;hb=fbcb7ece0ea1e364180f1cf963e0fa0ce7f6560d;hp=e95d694a9778dfa41be5c2e896b6bb6e7d22532d;hpb=b3b0fd552e11cb47cded66c42274acd710c8aee2;p=u-boot diff --git a/tools/bddb/brlog.php b/tools/bddb/brlog.php index e95d694a97..fccfbd011c 100644 --- a/tools/bddb/brlog.php +++ b/tools/bddb/brlog.php @@ -10,8 +10,9 @@ pg_head("$bddb_label - Browse Board Log"); - if (!isset($serno) || $serno == 0) - die("serial number not specified!"); + $serno=intval($serno); + if ($serno == 0) + die("serial number not specified or invalid!"); function print_cell($str) { if ($str == '') @@ -55,16 +56,16 @@
<%sa href=\"%s?serno=$serno&offset=%d\">![]() | \n", $offset>0?"":"no", $PHP_SELF, $preoffset);
- printf("<%sa href=\"%s?serno=$serno&offset=%d\">![]() | \n", $postoffset<$lrow['n']?"":"no", $PHP_SELF, $postoffset);
+ printf("<%sa href=\"%s?submit=Log&serno=$serno&offset=%d\">![]() | \n", $offset>0?"":"no", $PHP_SELF, $preoffset);
+ printf("<%sa href=\"%s?submit=Log&serno=$serno&offset=%d\">![]() | \n", $postoffset<$lrow['n']?"":"no", $PHP_SELF, $postoffset);
echo "