Changeset 4046

Show
Ignore:
Timestamp:
07/21/08 08:38:25 (3 months ago)
Author:
doki_pen
Message:

fixes ticket #2855

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • announcerplugin/0.11/announcerplugin/subscribers/wiki.py

    r3130 r4046  
    3737        for sid, authenticated, value in cursor.fetchall(): 
    3838            for raw in value.split(' '): 
    39                 pat = urllib.unquote(raw) 
     39                pat = urllib.unquote(raw).replace('*', '.*') 
    4040                if re.match(pat, name): 
    4141                    self.log.debug( 
     
    5858                 
    5959                sess['announcer_wiki_interests'] = ' '.join( 
    60                     urllib.quote( 
    61                         x.replace('*', '.*?') 
    62                     ) for x in options 
     60                    urllib.quote(x) for x in options 
    6361                ) 
    6462                 
     
    7068        return "prefs_announcer_wiki.html", dict( 
    7169            wiki_interests = '\n'.join( 
    72                 urllib.unquote( 
    73                     x.replace('.*?', '*') 
    74                 ) for x in interests.split(' ') 
     70                urllib.unquote(x) for x in interests.split(' ') 
    7571            ) 
    7672        )