Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

#30500 [NEW]: phpweb/cvs-php.php E_ALL fixes
From:             toni dot viemero at iki dot fi
Operating system: FreeBSD 5.3-RC1
PHP version:      5.0.2
PHP Bug Type:     Website problem
Bug description:  phpweb/cvs-php.php E_ALL fixes

Description:
------------
cvs-php.php reports undefined index errors on form elements

Here's the fix:

--- cvs-php.php.orig    Wed Oct 20 19:42:54 2004
+++ cvs-php.php Wed Oct 20 19:45:01 2004
@@ -289,12 +289,12 @@
<tr>
<th class="subr">Full Name:</th>
<td><input type="text" size="50" name="fullname"
-      class="max" value="<?php echo clean($_POST['fullname']);?>"
/></td>
+      class="max" value="<?php if (isset($_POST['fullname'])) echo
clean($_POST['fullname']);?>" /></td>
</tr>
<tr>
<th class="subr">Email:</th>
<td><input type="text" size="50" name="email"
-      class="max" value="<?php echo clean($_POST['email']);?>" /></td>
+      class="max" value="<?php if (isset($_POST['email'])) echo
clean($_POST['email']);?>" /></td>
</tr>
<tr>
<th class="subr">For what purpose do you require a CVS account:<br/ >
@@ -314,17 +314,17 @@
</tr>
<tr>
<th class="subr">If your intended purpose is not in the list, <br>please
state it here:</th>
- <td><textarea cols="50" rows="5" name="realpurpose" class="max"><?php
echo clean($_POST['realpurpose']);?></textarea></td>
+ <td><textarea cols="50" rows="5" name="realpurpose" class="max"><?php if
(isset($_POST['realpurpose'])) echo
clean($_POST['realpurpose']);?></textarea></td>
</tr>
<tr>
<th class="subr">User ID:<br /> <small>(single word, lower
case)</small></th>
<td><input type="text" size="10" name="id"
-      class="max" value="<?php echo clean($_POST['id']);?>" /></td>
+      class="max" value="<?php if (isset($_POST['id'])) echo
clean($_POST['id']);?>" /></td>
</tr>
<tr>
<th class="subr">Requested Password:</th>
<td><input type="password" size="10" name="password"
-      class="max" value="<?php echo clean($_POST['password']);?>"
/></td>
+      class="max" value="<?php if (isset($_POST['password'])) echo
clean($_POST['password']);?>" /></td>
</tr>
<tr>
<th colspan="2"><input type="submit" value="Send Request" /></th>


--
Edit bug report at http://bugs.php.net/?id=30500&edit=1
--
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=3050...0500&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=3050...30500&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=30500&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=3050...edtwice

register_globals:            http://bugs.php.net/fix.php?id=30500&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30500&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=30500&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=30500&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=30500&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30500&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30500&r=mysqlcfg

Report this thread to moderator Post Follow-up to this message
Old Post
Toni Dot Viemero At Iki Dot Fi
10-20-04 08:58 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Mirrors archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:37 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.