revise the sandbox
This commit is contained in:
parent
9e5f424394
commit
b00478d3b5
@ -234,7 +234,7 @@ function bbiframe($match) {
|
||||
// if(strpos($match[1],get_app()->get_hostname()))
|
||||
// return '<a href="' . $match[1] . '">' . $match[1] . '</a>';
|
||||
|
||||
return '<iframe sandbox="allow-same-origin allow-top-navigation" src="' . $match[1] . '" width="' . $a->videowidth . '" height="' . $a->videoheight . '"><a href="' . $match[1] . '">' . $match[1] . '</a></iframe>';
|
||||
return '<iframe sandbox="allow-scripts" src="' . $match[1] . '" width="' . $a->videowidth . '" height="' . $a->videoheight . '"><a href="' . $match[1] . '">' . $match[1] . '</a></iframe>';
|
||||
}
|
||||
|
||||
function bb_ShareAttributesSimple($match) {
|
||||
|
@ -165,7 +165,7 @@ function oembed_iframe($src,$width,$height) {
|
||||
$a = get_app();
|
||||
|
||||
$s = $a->get_baseurl()."/oembed/".base64url_encode($src);
|
||||
return '<iframe sandbox="allow-same-origin allow-top-navigation" height="' . $height . '" width="' . $width . '" src="' . $s . '" frameborder="no" >' . t('Embedded content') . '</iframe>';
|
||||
return '<iframe sandbox="allow-scripts" height="' . $height . '" width="' . $width . '" src="' . $s . '" frameborder="no" >' . t('Embedded content') . '</iframe>';
|
||||
|
||||
}
|
||||
|
||||
|
@ -1 +1 @@
|
||||
2014-03-29.631
|
||||
2014-03-30.632
|
||||
|
Reference in New Issue
Block a user