cvs: php-bugs-web / bug-pwd-finder.php

From: Date: Tue, 04 Mar 2003 22:31:00 +0000
Subject: cvs: php-bugs-web / bug-pwd-finder.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-16106@lists.php.net to get a copy of this message
pollita Tue Mar 4 17:31:00 2003 EDT Modified files: /php-bugs-web bug-pwd-finder.php Log: Bug #22479 Not dealing with id numbers that contain absolutely no digits correctly. Index: php-bugs-web/bug-pwd-finder.php diff -u php-bugs-web/bug-pwd-finder.php:1.5 php-bugs-web/bug-pwd-finder.php:1.6 --- php-bugs-web/bug-pwd-finder.php:1.5 Wed Jan 22 19:34:40 2003 +++ php-bugs-web/bug-pwd-finder.php Tue Mar 4 17:31:00 2003 @@ -21,26 +21,28 @@ // Run the query $result = mysql_query ($query) or die ("Sorry. No information could be found for bug report #$bug_id"); - } else { - $msg = "The provided #$bug_id bug id is invalid."; - } - if (mysql_num_rows($result) != 1) { - $msg = "No password found for #$bug_id bug report, sorry."; - } else { - list ($email, $passwd) = mysql_fetch_row ($result); - - if (empty($passwd)) { + if (mysql_num_rows($result) != 1) { $msg = "No password found for #$bug_id bug report, sorry."; } else { - $passwd = stripslashes ($passwd); + list ($email, $passwd) = mysql_fetch_row ($result); + + if (empty($passwd)) { + $msg = "No password found for #$bug_id bug report, sorry."; + } else { + $passwd = stripslashes ($passwd); - mail ($email, "Password for bug report #$bug_id", "The password for bug report #$bug_id is $passwd.", "From: noreply@php.net") - or die ("Sorry. Mail could not be sent at this time. Please try again later."); + mail ($email, "Password for bug report #$bug_id", "The password for bug report #$bug_id is $passwd.", "From: noreply@php.net") + or die ("Sorry. Mail could not be sent at this time. Please try again later."); - $msg = "The password for bug report #$bug_id has been sent to $email."; + $msg = "The password for bug report #$bug_id has been sent to $email."; + } } + + } else { + $msg = "The provided #$bug_id bug id is invalid."; } + } commonHeader("Bug Report Password Finder");

« previous php.mirrors (#16106) next »