cvs: phpweb / cvs-php.php

From: Date: Tue, 20 Aug 2002 18:10:47 +0000
Subject: cvs: phpweb / cvs-php.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-12063@lists.php.net to get a copy of this message
rasmus Tue Aug 20 14:10:47 2002 EDT Modified files: /phpweb cvs-php.php Log: Add validity check for user ids Index: phpweb/cvs-php.php diff -u phpweb/cvs-php.php:1.19 phpweb/cvs-php.php:1.20 --- phpweb/cvs-php.php:1.19 Wed May 1 21:51:18 2002 +++ phpweb/cvs-php.php Tue Aug 20 14:10:47 2002 @@ -23,6 +23,8 @@ if (empty($in[id])) { $error .= "You must supply a desired CVS id. "; + } elseif(!preg_match('/^[a-z]\w+$/',$in[id])) { + $error .= "Your user id must >1 char long, start with a letter and contain nothing but a-z or 0-9 and _"; } if (empty($in[fullname])) { $error .= "You must supply your real name. "; @@ -169,6 +171,10 @@ <td bgcolor="#dddddd">Writing web pages with PHP</td> <td bgcolor="#eeeeee">&nbsp;</td> </tr> + <tr> + <td bgcolor="#dddddd">Setting up a php.net mirror site</td> + <td bgcolor="#eeeeee">&nbsp;</td> + </tr> </table> <p> @@ -244,7 +250,7 @@ <td><textarea cols="50" rows="5" name="in[purpose]"><?php echo clean($in[purpose]);?></textarea></td> </tr> <tr> - <th>User ID: </th> + <th>User ID: (single word, lower case)</th> <td><input type="text" size="10" name="in[id]" value="<?php echo clean($in[id]);?>" /></td> </tr> <tr>

« previous php.mirrors (#12063) next »