cvs: phpweb /manual add-note.php

From: Date: Wed, 03 Oct 2001 20:22:53 +0000
Subject: cvs: phpweb /manual add-note.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-6847@lists.php.net to get a copy of this message
jimw Wed Oct 3 16:22:53 2001 EDT Modified files: /phpweb/manual add-note.php Log: don't allow notes bigger than 4k. Index: phpweb/manual/add-note.php diff -u phpweb/manual/add-note.php:1.26 phpweb/manual/add-note.php:1.27 --- phpweb/manual/add-note.php:1.26 Sat Sep 22 22:02:36 2001 +++ phpweb/manual/add-note.php Wed Oct 3 16:22:52 2001 @@ -18,7 +18,11 @@ unset ($note); } -if (isset($note) && isset($action) && strtolower($action) != "preview"): +if (isset($note) && strlen($note) >= 4096) { + echo "<p>Your note is too long. You'll have to make it shorter before you can post it.</p>"; +} + +if (isset($note) && isset($action) && strlen($note) < 4096) && strtolower($action) != "preview"): $result = posttohost("http://master.php.net/entry/user-note.php", array( "user" => stripslashes($user), "note" => stripslashes($note), @@ -40,7 +44,7 @@ ?> <p>You can <a href="<?php echo $redirect?>">go back</a> from whence you came.</p> <?else: - if (isset($note) && strtolower($action) == "preview"):?> + if (isset($note)):?> <p>This is what your entry will look like, roughly:</p> <? echo '<table border="0" cellpadding="0" cellspacing="0" width="100%">';

« previous php.mirrors (#6847) next »