Skip to content

Commit c4f3c75

Browse files
author
Richard Jones
committed
stop sending blank (whitespace-only) notes
1 parent 0862913 commit c4f3c75

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

CHANGES.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ Feature:
1616
</property>
1717
</td>
1818

19+
Fixed:
20+
. stop sending blank (whitespace-only) notes
21+
22+
1923
2002-03-25 - 0.4.1
2024
Feature:
2125
. use blobfiles in back_anydbm which is used in back_bsddb.

roundup/cgi_client.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: cgi_client.py,v 1.114 2002-03-17 23:06:05 richard Exp $
18+
# $Id: cgi_client.py,v 1.115 2002-04-02 01:56:10 richard Exp $
1919

2020
__doc__ = """
2121
WWW request handler (also used in the stand-alone server).
@@ -663,7 +663,7 @@ def _handle_message(self):
663663
# in a nutshell, don't do anything if there's no note or there's no
664664
# NOSY
665665
if self.form.has_key('__note'):
666-
note = self.form['__note'].value
666+
note = self.form['__note'].value.strip()
667667
if not props.has_key('messages'):
668668
return None, files
669669
if not isinstance(props['messages'], hyperdb.Multilink):
@@ -1357,6 +1357,9 @@ def parsePropsFromForm(db, cl, form, nodeid=0):
13571357

13581358
#
13591359
# $Log: not supported by cvs2svn $
1360+
# Revision 1.114 2002/03/17 23:06:05 richard
1361+
# oops
1362+
#
13601363
# Revision 1.113 2002/03/14 23:59:24 richard
13611364
# . #517734 ] web header customisation is obscure
13621365
#

0 commit comments

Comments
 (0)