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>
Reviewed: https:/ /reviews. mahara. org/1137 gitorious. org/mahara/ mahara/ commit/ 4b8c5170f44c162 fbd56cc1b6519ba 613ac38f5c
Committed: http://
Submitter: Richard Mansfield (<email address hidden>)
Branch: master
commit 4b8c5170f44c162 fbd56cc1b6519ba 613ac38f5c
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: I7fd2bfefbff088 1e70b94beb9e8d3 efb43f0f9e7
Signed-off-by: Richard Mansfield <email address hidden>