includes/wikiengine/TagSanitizer.php
changeset 1127 4b858862c35c
parent 1081 745200a9cc2a
child 1227 bdac73ed481e
equal deleted inserted replaced
1125:367768040a61 1127:4b858862c35c
    27 define( 'MW_ATTRIBS_REGEX',
    27 define( 'MW_ATTRIBS_REGEX',
    28   "/(?:^|$space)($attrib+)
    28   "/(?:^|$space)($attrib+)
    29     ($space*=$space*
    29     ($space*=$space*
    30     (?:
    30     (?:
    31      # The attribute value: quoted or alone
    31      # The attribute value: quoted or alone
    32       ".'"'."([^<".'"'."]*)".'"'."
    32       \"([^<\"]*)\"
    33      | '([^<']*)'
    33      | '([^<']*)'
    34      |  ([a-zA-Z0-9!#$%&()*,\\-.\\/:;<>?@[\\]^_`{|}~]+)
    34      |  ([a-zA-Z0-9!#$%&()*,\\-.\\/:;<>?@[\\]^_`{|}~]+)
    35      |  (\#[0-9a-fA-F]+) # Technically wrong, but lots of
    35      |  (\#[0-9a-fA-F]+) # Technically wrong, but lots of
    36                # colors are specified like this.
    36                # colors are specified like this.
    37                # We'll be normalizing it.
    37                # We'll be normalizing it.