aboutsummaryrefslogtreecommitdiffstats
path: root/include/bbcode.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-03-16 20:34:21 -0700
committerfriendica <info@friendica.com>2014-03-16 20:34:21 -0700
commitecb2e52a7411a8a39b8030964604f0f28f2facce (patch)
treebbe36d04ddb359002cc0aa6976dd6a2c34d73747 /include/bbcode.php
parent6f9fde997bd0d6c59045220a1afc2060b857c83a (diff)
downloadvolse-hubzilla-ecb2e52a7411a8a39b8030964604f0f28f2facce.tar.gz
volse-hubzilla-ecb2e52a7411a8a39b8030964604f0f28f2facce.tar.bz2
volse-hubzilla-ecb2e52a7411a8a39b8030964604f0f28f2facce.zip
little fixes of hopefully nil significance
Diffstat (limited to 'include/bbcode.php')
-rw-r--r--include/bbcode.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/bbcode.php b/include/bbcode.php
index cd0bf527e..c8d1ab425 100644
--- a/include/bbcode.php
+++ b/include/bbcode.php
@@ -229,9 +229,12 @@ function bb_location($match) {
function bbiframe($match) {
$a = get_app();
- if(strpos($match[1],get_app()->get_hostname()))
- return '<a href="' . $match[1] . '">' . $match[1] . '</a>';
- return '<iframe src="' . $match[1] . '" width="' . $a->videowidth . '" height="' . $a->videoheight . '"><a href="' . $match[1] . '">' . $match[1] . '</a></iframe>';
+
+ // use sandbox mode to prevent malicious goings on rather than host restriction
+ // 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>';
}
function bb_ShareAttributesSimple($match) {