Skip to content

Commit

Permalink
[#703] Fix <b> or <b ...> ok but <b...> bad
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes authored and amercader committed Mar 26, 2013
1 parent e1ba4db commit dd2c016
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/misc.py
Expand Up @@ -35,8 +35,8 @@ class MarkdownFormat(TextFormat):
normal_link = re.compile('<(http:[^>]+)>')

html_whitelist = 'b center li ol p table td tr ul'.split(' ')
whitelist_elem = re.compile(r'<(\/?(%s)[^>]*)>' % "|".join(html_whitelist), re.IGNORECASE)
whitelist_escp = re.compile(r'\\xfc\\xfd(\/?(%s)[^>]*?)\\xfd\\xfc' % "|".join(html_whitelist), re.IGNORECASE)
whitelist_elem = re.compile(r'<(\/?((%s)(\s[^>]*)?))>' % "|".join(html_whitelist), re.IGNORECASE)
whitelist_escp = re.compile(r'\\xfc\\xfd(\/?((%s)(\s[^>]*?)?))\\xfd\\xfc' % "|".join(html_whitelist), re.IGNORECASE)
normal_link = re.compile(r'<a[^>]*?href="([^"]*?)"[^>]*?>', re.IGNORECASE)
abbrev_link = re.compile(r'<(http://[^>]*)>', re.IGNORECASE)
any_link = re.compile(r'<a[^>]*?>', re.IGNORECASE)
Expand Down

0 comments on commit dd2c016

Please sign in to comment.