For Programmers: Free Programming Magazines  


Home > Archive > PHP Mirrors > October 2004 > #30500 [NEW]: phpweb/cvs-php.php E_ALL fixes









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author #30500 [NEW]: phpweb/cvs-php.php E_ALL fixes
Toni Dot Viemero At Iki Dot Fi

2004-10-20, 3:58 pm

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=30500&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30500&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30500&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30500&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30500&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30500&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30500&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30500&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=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=30500&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30500&r=submittedtwice
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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com