Ticket #2855: astrisk.patch
| File astrisk.patch, 1.4 kB (added by doki_pen, 5 months ago) |
|---|
-
announcerplugin/subscribers/wiki.py
old new 36 36 37 37 for sid, authenticated, value in cursor.fetchall(): 38 38 for raw in value.split(' '): 39 pat = urllib.unquote(raw) 39 pat = urllib.unquote(raw).replace('*', '.*') 40 40 if re.match(pat, name): 41 41 self.log.debug( 42 42 "GeneralWikiSubscriber added '%s (%s)' because name '%s' matches pattern: %s" % ( … … 57 57 options = results.splitlines() 58 58 59 59 sess['announcer_wiki_interests'] = ' '.join( 60 urllib.quote( 61 x.replace('*', '.*?') 62 ) for x in options 60 urllib.quote(x) for x in options 63 61 ) 64 62 65 63 if 'announcer_wiki_interests' in sess: … … 69 67 70 68 return "prefs_announcer_wiki.html", dict( 71 69 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(' ') 75 71 ) 76 72 )
