mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 21:35:56 +00:00
if loaded over ssl and iframe is whitelisted, set its source to https
This commit is contained in:
@@ -911,8 +911,13 @@
|
||||
foreach ($entries as $entry) {
|
||||
if (!iframe_whitelisted($entry)) {
|
||||
$entry->setAttribute('sandbox', 'allow-scripts');
|
||||
} else {
|
||||
if ($_SERVER['HTTPS'] == "on") {
|
||||
$entry->setAttribute("src",
|
||||
str_replace("http://", "https://",
|
||||
$entry->getAttribute("src")));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$allowed_elements = array('a', 'address', 'audio', 'article', 'aside',
|
||||
|
||||
Reference in New Issue
Block a user