[Secureideas-base-devel] base_qry_common.php and base_qry_alert.php bugfixes
Brought to you by:
secureideas,
sinukas
From: nikns <ni...@se...> - 2006-01-23 21:59:12
|
There was two bugs fixed: Fixed bug #1371532 First of month timestamp issue (base_qry_common.php) Fixed bug #1406945 Lost alert order when swiching between payload display (base_qry_alert.php) Please, upgrade and test. Latest snapshot: ftp://ftp.secure.lv/pub/BASE/base-SNAP-20060123.tar.gz diffs: --- base-php4/base_qry_common.php Fri Jan 20 20:07:36 2006 +++ base/base_qry_common.php Mon Jan 23 22:48:53 2006 @@ -107,10 +107,9 @@ return 0; } -function formatTimeDigit($time_digit) +function FormatTimeDigit($time_digit) { - //$int_time_digit = (int) $time_digit; - if(((int) $time_digit) < 10 && strlen($time_digit==1)) + if(strlen(trim($time_digit))==1) $time_digit = "0".trim($time_digit); return $time_digit; } --- base-php4/base_qry_alert.php Wed Jan 4 06:15:23 2006 +++ base/base_qry_alert.php Mon Jan 23 22:52:04 2006 @@ -57,7 +57,8 @@ { //create link to non-cleaned payload display $query = $_SERVER["QUERY_STRING"]; - $url = '<center><a href="base_qry_alert.php?'.$_SERVER["QUERY_STRING"].'&asciiclean=0">'._QANORMALD.'</a></center>'; + $sort_order=ImportHTTPVar("sort_order"); + $url = '<center><a href="base_qry_alert.php?'.$_SERVER["QUERY_STRING"].'&sort_order='.$sort_order.'&asciiclean=0">'._QANORMALD.'</a></center>'; //$_COOKIE["asciiclean"] == "clean"; return $url; } @@ -65,7 +66,8 @@ { //create link to cleaned payload display $query = $_SERVER["QUERY_STRING"]; - $url = '<center><a href="base_qry_alert.php?'.$_SERVER["QUERY_STRING"].'&asciiclean=1">'._QAPLAIND.'</a></center>'; + $sort_order=ImportHTTPVar("sort_order"); + $url = '<center><a href="base_qry_alert.php?'.$_SERVER["QUERY_STRING"].'&sort_order='.$sort_order.'&asciiclean=1">'._QAPLAIND.'</a></center>'; //$_COOKIE["asciiclean"] == "normal"; return $url; } Thanks Nikns Siankin |