cvs: phpweb / bugs.php

From: Date: Tue, 10 Jul 2001 21:05:14 +0000
Subject: cvs: phpweb / bugs.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-5447@lists.php.net to get a copy of this message
jimw Tue Jul 10 17:05:14 2001 EDT Modified files: /phpweb bugs.php Log: fix user password checking, setting email of user comment Index: phpweb/bugs.php diff -u phpweb/bugs.php:1.155 phpweb/bugs.php:1.156 --- phpweb/bugs.php:1.155 Mon Jul 9 14:16:47 2001 +++ phpweb/bugs.php Tue Jul 10 17:05:13 2001 @@ -239,7 +239,7 @@ $success = 0; if ($modify == "user") { - if (!$row[passwd] || $row[passwd] != $pw) { + if (!$original[passwd] || $original[passwd] != stripslashes($pw)) { echo "<h2 class=\"error\">The password you supplied was incorrect.</h2>\n"; } elseif (incoming_details_are_valid()) { @@ -248,7 +248,7 @@ /* add comment */ if ($success && !empty($ncomment)) { - $success = @mysql_query("INSERT INTO bugdb_comments (bug, email, ts, comment) VALUES ($id,'$eemail',NOW(),'$ncomment')"); + $success = @mysql_query("INSERT INTO bugdb_comments (bug, email, ts, comment) VALUES ($id,'$email',NOW(),'$ncomment')"); } } $from = $email;

« previous php.mirrors (#5447) next »