mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-01-03 00:49:14 +00:00
disable scripts in rss entry content
This commit is contained in:
@@ -530,6 +530,13 @@
|
||||
|
||||
}
|
||||
|
||||
# sanitize content
|
||||
$entry_content = preg_replace('/<script.*?>/i',
|
||||
"<p class=\"scriptWarn\">", $entry_content);
|
||||
|
||||
$entry_content = preg_replace('/<\/script>/i',
|
||||
"</p>", $entry_content);
|
||||
|
||||
db_query($link, "BEGIN");
|
||||
|
||||
if (db_num_rows($result) == 0) {
|
||||
|
||||
12
tt-rss.css
12
tt-rss.css
@@ -1145,3 +1145,15 @@ span.debugTS {
|
||||
#backReqBox {
|
||||
display : none;
|
||||
}
|
||||
|
||||
.scriptWarn:before {
|
||||
content : "Disabled script:";
|
||||
}
|
||||
|
||||
.scriptWarn {
|
||||
color : white;
|
||||
background-color : #903030;
|
||||
border : 1px solid #601010;
|
||||
padding : 3px;
|
||||
font-weight : bold;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user