Re: phpweb / bugs.php

From: Date: Tue, 10 Jul 2001 21:18:08 +0000
Subject: Re: phpweb / bugs.php
References: 1  Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-5449@lists.php.net to get a copy of this message
$row[passwd] should be $row['passwd'] See http://www.php.net/manual/en/language.types.array.php#language.types.array.f oo-bar Jeroen ----- Original Message ----- From: "Jim Winstead" <jimw@php.net> Newsgroups: php.mirrors To: <php-mirrors@lists.php.net> Sent: Tuesday, July 10, 2001 11:05 PM Subject: cvs: phpweb / bugs.php > 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 (#5449) next »