[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[minion-cvs] Limit nicknames a bit, but not as much as peter wants
Update of /home/minion/cvsroot/src/minion/lib/mixminion
In directory moria.mit.edu:/tmp/cvs-serv30354/lib/mixminion
Modified Files:
Config.py
Log Message:
Limit nicknames a bit, but not as much as peter wants
Index: Config.py
===================================================================
RCS file: /home/minion/cvsroot/src/minion/lib/mixminion/Config.py,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- Config.py 5 Jan 2003 13:19:53 -0000 1.33
+++ Config.py 8 Jan 2003 07:56:24 -0000 1.34
@@ -287,14 +287,15 @@
return calendar.timegm((yyyy,MM,dd,hh,mm,ss,0,0,0))
+# ????003 What should this actually be?
_NICKNAME_CHARS = ("ABCDEFGHIJKLMNOPQRSTUVWXYZ"+
"abcdefghijklmnopqrstuvwxyz"+
- "0123456789_.!@#-")
+ "0123456789_.@-")
MAX_NICKNAME = 128
def _parseNickname(s):
"""Validation function. Returns true iff s contains a valoid
server nickname-- that is, a string of 1..128 characters,
- containing only the characters [A-Za-z0-9_.!@#] and '-'.
+ containing only the characters [A-Za-z0-9_@] and '-'.
"""
s = s.strip()
bad = s.translate(mixminion.Common._ALLCHARS, _NICKNAME_CHARS)