Plugin Directory

Changeset 1062376


Ignore:
Timestamp:
01/07/2015 05:02:05 PM (11 years ago)
Author:
aercolino
Message:

Fixed a bug that prevented some injections to be processed because the e_blank regex was failing to catch \xC2\xA0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • enzymes/trunk/lib/Enzymes3.php

    r1062328 r1062376  
    267267        $this->e_comment = new Ando_Regex('\/\*.*?\*\/', '@@s');
    268268        // for some reason WP introduces some C2 (hex) chars when writing a post...
    269         $this->e_blank = new Ando_Regex('(?:\s|\xc2)+', '@@');
     269        $this->e_blank = new Ando_Regex('(?:\s|\xC2\xA0)+', '@@');
    270270        $this->e_escaped_injection_delimiter = new Ando_Regex('\\\\([{[\]}])', '@@');
    271271        $this->e_escaped_string_delimiter = new Ando_Regex('\\\\=', '@@');
Note: See TracChangeset for help on using the changeset viewer.