To participate you must create an account on apostrophenow.org. If you have already done so, click Login.

Show
Ignore:
Timestamp:
09/08/10 12:02:13 (21 months ago)
Author:
tboutell
Message:

Added iframe to the list of tags allowed for media embed code purposes. It is an increasingly popular choice and has good cross-browser scripting protections, so there's really no reason to forbid it. We thought about allowing 'script' but it can be quite nasty and it's also not clear at all how to rewrite the width and height of the embedded gadget with 'script'

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/apostrophePlugin/trunk/lib/form/BaseaMediaVideoEmbedForm.class.php

    r1628 r2146  
    2525  { 
    2626    // Don't let this become a way to embed arbitrary HTML 
    27     $value = trim(strip_tags($value, "<embed><object><param><applet>")); 
     27    $value = trim(strip_tags($value, "<embed><object><param><applet><iframe>")); 
    2828    // Kill any text outside of tags 
    2929    if (preg_match_all("/<.*?>/", $value, $matches))