#19571 [NEW]: bugs.php.net return page source code

From: Date: Tue, 24 Sep 2002 09:09:49 +0000
Subject: #19571 [NEW]: bugs.php.net return page source code
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-12742@lists.php.net to get a copy of this message
From: duracell@apinc.org Operating system: PHP version: 4.2.3 PHP Bug Type: Website problem Bug description: bugs.php.net return page source code Sometimes, bugs.php.net return the source code of the page ... (verrrryyyy bad bug !) <?php /* vim: set noet ts=4 sw=4: : */ require_once 'prepend.inc'; if (isset($MAGIC_COOKIE) && !isset($user) && !isset($pw)) { list($user,$pw) = explode(":", base64_decode($MAGIC_COOKIE)); } if ($search_for && !preg_match("/\\D/",trim($search_for))) { $x = $pw ? ($user ? "&edit=1" : "&edit=2") : ""; header("Location: bug.php?id=$search_for$x"); exit; } commonHeader("Search"); $errors = array(); $warnings = array(); if (isset($cmd) && $cmd == "display") { @mysql_pconnect("localhost","XXXXX","") or die("Unable to connect to SQL server."); @mysql_select_db("php3"); if (!$bug_type) $bug_type = "Any"; $query = "SELECT SQL_CALC_FOUND_ROWS *," . "TO_DAYS(NOW())-TO_DAYS(ts2) AS unchanged FROM bugdb "; if($bug_type=="Any") { $where_clause = "WHERE bug_type != 'Feature/Change Request'"; } else { $where_clause = "WHERE bug_type = '$bug_type'"; } /* Treat assigned, analyzed, critical and verified bugs as open */ if ($status == "Open") { $where_clause .= " AND (status='Open' OR status='Assigned' OR status='Analyzed' OR status='Critical' OR status='Verified')"; } elseif ($status == "Old Feedback") { $where_clause .= " AND status='Feedback' AND TO_DAYS(NOW())-TO_DAYS(ts2)>60"; } elseif ($status == "Fresh") { $where_clause .= " AND status != 'Closed' AND status != 'Duplicate' AND status != 'Bogus' AND TO_DAYS(NOW())-TO_DAYS(ts2) < 30"; } elseif ($status == "Stale") { $where_clause .= " AND status != 'Closed' AND status != 'Duplicate' AND status != 'Bogus' AND TO_DAYS(NOW())-TO_DAYS(ts2) > 30"; } elseif ($status && $status != "All") { $where_clause .= " AND status='$status'"; } if (strlen($search_for)) { list($sql_search, $ignored) = format_search_string($search_for); $where_clause .= $sql_search; if (count($ignored) > 0 ) { array_push($warnings, "The following words were ignored: " . htmlentities(implode(', ', array_unique($ignored)))); } } -- Edit bug report at http://bugs.php.net/?id=19571&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=19571&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=19571&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=19571&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=19571&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=19571&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=19571&r=support Expected behavior: http://bugs.php.net/fix.php?id=19571&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=19571&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=19571&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=19571&r=globals

« previous php.mirrors (#12742) next »