cvs: php-bugs-web / search.php

From: Date: Sat, 13 Oct 2001 23:37:53 +0000
Subject: cvs: php-bugs-web / search.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-6996@lists.php.net to get a copy of this message
jimw Sat Oct 13 19:37:53 2001 EDT Modified files: /php-bugs-web search.php Log: if just a number is entered in the search_for, treat it like a bug number and go straight to that page Index: php-bugs-web/search.php diff -u php-bugs-web/search.php:1.5 php-bugs-web/search.php:1.6 --- php-bugs-web/search.php:1.5 Fri Oct 5 12:03:12 2001 +++ php-bugs-web/search.php Sat Oct 13 19:37:53 2001 @@ -1,6 +1,11 @@ <?php /* vim: set noet ts=4 sw=4: : */ require_once 'prepend.inc'; +if ($search_for && !preg_match("/\\D/",trim($search_for))) { + header("Location: bug.php?id=$search_for"); + exit; +} + commonHeader("Search"); if (isset($cmd) && $cmd == "display") {

« previous php.mirrors (#6996) next »