projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sbc8548: replace README with completely new document
[oweals/u-boot.git]
/
tools
/
bddb
/
doedlog.php
diff --git
a/tools/bddb/doedlog.php
b/tools/bddb/doedlog.php
index 21e50b0e189aee52326f7f089a8c934a08978984..7009aa7dad15a97535f0a0cfc37626b01dd473e6 100644
(file)
--- a/
tools/bddb/doedlog.php
+++ b/
tools/bddb/doedlog.php
@@
-10,15
+10,18
@@
pg_head("$bddb_label - Edit Log Entry Results");
pg_head("$bddb_label - Edit Log Entry Results");
- if (
$serno == 0
)
+ if (
!isset($_REQUEST['serno']) || $_REQUEST['serno'] == ''
)
die("the board serial number was not specified");
die("the board serial number was not specified");
+ $serno=intval($_REQUEST['serno']);
- if (!isset($
logno) || $logno == 0
)
+ if (!isset($
_REQUEST['logno']) || $_REQUEST['logno'] == ''
)
die("log number not specified!");
die("log number not specified!");
+ $logno=intval($_REQUEST['logno']);
$query="update log set";
$query="update log set";
- if (isset($date)) {
+ if (isset($_REQUEST['date'])) {
+ $date=$_REQUEST['date'];
list($y, $m, $d) = split("-", $date);
if (!checkdate($m, $d, $y) || $y < 1999)
die("date is invalid (input '$date', " .
list($y, $m, $d) = split("-", $date);
if (!checkdate($m, $d, $y) || $y < 1999)
die("date is invalid (input '$date', " .
@@
-26,11
+29,15
@@
$query.=" date='$date'";
}
$query.=" date='$date'";
}
- if (isset($who))
+ if (isset($_REQUEST['who'])) {
+ $who=$_REQUEST['who'];
$query.=", who='" . $who . "'";
$query.=", who='" . $who . "'";
+ }
- if (isset($details))
+ if (isset($_REQUEST['details'])) {
+ $details=$_REQUEST['details'];
$query.=", details='" . rawurlencode($details) . "'";
$query.=", details='" . rawurlencode($details) . "'";
+ }
$query.=" where serno=$serno and logno=$logno";
$query.=" where serno=$serno and logno=$logno";