cvs: phpweb /manual add-note.php

From: Date: Tue, 13 May 2003 03:14:07 +0000
Subject: cvs: phpweb /manual add-note.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-17532@lists.php.net to get a copy of this message
alindeman Mon May 12 23:14:07 2003 EDT Modified files: /phpweb/manual add-note.php Log: make sure a user specifies an email address or name Index: phpweb/manual/add-note.php diff -u phpweb/manual/add-note.php:1.41 phpweb/manual/add-note.php:1.42 --- phpweb/manual/add-note.php:1.41 Mon May 12 22:52:39 2003 +++ phpweb/manual/add-note.php Mon May 12 23:14:07 2003 @@ -38,6 +38,11 @@ $error = "You have not specified the note text."; } + //No email address + if (strlen ($user) == 0) { + $error = "You did not specify an email address or name."; + } + // The user name contains a malicious character elseif (stristr($user, "|")) { $error = "You have included bad characters within your username. We appreciate you may want to obfusicate your email further, but we have a system in place to do this for you.";

« previous php.mirrors (#17532) next »