Commit 25be2e28 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

A minor fix I forgot to check in; validate the records argument.

parent 00b820f6
...@@ -36,10 +36,12 @@ if (! isset($which)) ...@@ -36,10 +36,12 @@ if (! isset($which))
if (!isset($records) || !strcmp($records, "")) { if (!isset($records) || !strcmp($records, "")) {
$records = 100; $records = 100;
} }
elseif (! TBvalid_integer($records)) {
PAGEARGERROR("Invalid argument: $records!");
}
echo "<b>Show: <a class='static' href='showexpstats.php3'> echo "<b>Show: <a class='static' href='showexpstats.php3'>
Experiment Stats</a>"; Experiment Stats</a>";
if ($isadmin) { if ($isadmin) {
echo "<a class='static' href='showsumstats.php3'>, Summary Stats</a>\n"; echo "<a class='static' href='showsumstats.php3'>, Summary Stats</a>\n";
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment