disable scripts in rss entry content
This commit is contained in:
parent
5c365f6055
commit
d48d160c64
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue