php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19571 bugs.php.net return page source code
Submitted: 2002-09-24 04:09 UTC Modified: 2002-09-24 06:46 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:0 of 2 (0.0%)
From: duracell at apinc dot org Assigned:
Status: Closed Package: Website problem
PHP Version: 4.2.3 OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: duracell at apinc dot org
New email:
PHP Version: OS:

 

 [2002-09-24 04:09 UTC] duracell at apinc dot org
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))));
        }
    }

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-24 06:46 UTC] imajes@php.net
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at 
http://www.php.net/downloads.php

This may happen when someone is working on the machine.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC