| Gabor Hojtsy 2004-10-24, 3:55 pm |
| goba Sun Oct 24 09:53:04 2004 EDT
Modified files:
/phpweb cvs-php.php
Log:
apply E_ALL fixes provided by Toni Viemero
http://cvs.php.net/diff.php/phpweb/...35&r2=1.36&ty=u
Index: phpweb/cvs-php.php
diff -u phpweb/cvs-php.php:1.35 phpweb/cvs-php.php:1.36
--- phpweb/cvs-php.php:1.35 Mon Oct 11 10:18:22 2004
+++ phpweb/cvs-php.php Sun Oct 24 09:53:02 2004
@@ -1,5 +1,5 @@
<?php
-// $Id: cvs-php.php,v 1.35 2004/10/11 14:18:22 goba Exp $
+// $Id: cvs-php.php,v 1.36 2004/10/24 13:53:02 goba Exp $
$_SERVER['BASE_PAGE'] = 'cvs-php.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/email-validation.inc';
@@ -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>
|