File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1212- lithuanian translation updated by Nerijus Baliunas (sf patch 1411175)
1313- incompatibility with python2.3 in the mailer module (sf bug 1432602)
1414- typo in SMTP TLS option name: "MAIL_TLS_CERFILE" (sf bug 1435452)
15+ - email obfuscation code in html templating is more robust
1516
1617
17182006-02-10 1.1.0
Original file line number Diff line number Diff line change @@ -1307,8 +1307,9 @@ def email(self, escape=1):
13071307 value = ''
13081308 else :
13091309 value = str (self ._value )
1310- if value .find ('@' ) != - 1 :
1311- name , domain = value .split ('@' )
1310+ split = value .split ('@' )
1311+ if len (split ) == 2 :
1312+ name , domain = split
13121313 domain = ' ' .join (domain .split ('.' )[:- 1 ])
13131314 name = name .replace ('.' , ' ' )
13141315 value = '%s at %s ...' % (name , domain )
You can’t perform that action at this time.
0 commit comments