diff options
| author | bwarsaw | 1999-03-09 15:59:20 +0000 |
|---|---|---|
| committer | bwarsaw | 1999-03-09 15:59:20 +0000 |
| commit | 7b372ff4793fc6307dff95862124b2f774a76e44 (patch) | |
| tree | 183765bee64769806b4f57211c8edbfa9bc33c25 /Mailman/Cgi/options.py | |
| parent | d9bf3ba4213659976067c59f4decc92cb0d7cff1 (diff) | |
| download | mailman-7b372ff4793fc6307dff95862124b2f774a76e44.tar.gz mailman-7b372ff4793fc6307dff95862124b2f774a76e44.tar.zst mailman-7b372ff4793fc6307dff95862124b2f774a76e44.zip | |
Diffstat (limited to 'Mailman/Cgi/options.py')
| -rw-r--r-- | Mailman/Cgi/options.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Mailman/Cgi/options.py b/Mailman/Cgi/options.py index 5e5b70759..56a680bb7 100644 --- a/Mailman/Cgi/options.py +++ b/Mailman/Cgi/options.py @@ -29,6 +29,7 @@ unobscured ids as well. import sys import os, string +from types import StringType from Mailman import Utils, MailList, htmlformat from Mailman import mm_cfg from Mailman import Errors @@ -79,7 +80,8 @@ def main(): # set. if mlist.obscure_addresses: presentable_user = Utils.ObscureEmail(user, for_text=1) - cpuser = Utils.ObscureEmail(cpuser, for_text=1) + if type(cpuser) == StringType: + cpuser = Utils.ObscureEmail(cpuser, for_text=1) else: presentable_user = user # Do replacements @@ -134,7 +136,7 @@ def main(): ' To Me')) replacements['<mm-umbrella-notice>'] = ( mlist.FormatUmbrellaNotice(user, "password")) - if type(cpuser) == type(''): + if type(cpuser) == StringType: replacements['<mm-case-preserved-user>'] = ''' You are subscribed to this list with the case-preserved address <em>%s</em>.''' % cpuser |
