• Richard Mansfield's avatar
    Move the list of safe iframe sources to the database (bug #971282) · 4b8c5170
    Richard Mansfield authored
    
    
    Builds the htmlpurifier safe iframe regexp from a list of sites stored
    in the database, instead of a hardcoded array.
    
    Each site in the safe iframe list is associated with a name.  This
    will allow several regexp items to be grouped together under the same
    name when they're matching urls from the same site.
    
    Additionally, the domain part of each site is stored in a second list
    along with the names, so that it will be easy to fetch the favicon for
    display in places such as the external media block configuration form.
    
    Change-Id: I7fd2bfefbff0881e70b94beb9e8d3efb43f0f9e7
    Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
    4b8c5170