Comment 1 for bug 971282

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/1137
Committed: http://gitorious.org/mahara/mahara/commit/4b8c5170f44c162fbd56cc1b6519ba613ac38f5c
Submitter: Richard Mansfield (<email address hidden>)
Branch: master

commit 4b8c5170f44c162fbd56cc1b6519ba613ac38f5c
Author: Richard Mansfield <email address hidden>
Date: Fri Mar 23 15:31:52 2012 +1300

    Move the list of safe iframe sources to the database (bug #971282)

    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: Richard Mansfield <email address hidden>