mirror of
https://github.com/webmin/webmin.git
synced 2026-06-19 10:50:21 +01:00
HTML outside the head or body is too dangerous to include
This commit is contained in:
@@ -2287,10 +2287,10 @@ sub safe_html
|
||||
{
|
||||
local $html = $_[0];
|
||||
local $bodystuff;
|
||||
if ($html =~ s/^([\000-\377]*?)<BODY([^>]*)>/$1/i) {
|
||||
if ($html =~ s/^[\000-\377]*?<BODY([^>]*)>//i) {
|
||||
$bodystuff = $1;
|
||||
}
|
||||
$html =~ s/<\/BODY>([\000-\377]*)$/$1/i;
|
||||
$html =~ s/<\/BODY>[\000-\377]*$//i;
|
||||
$html =~ s/<base[^>]*>//i;
|
||||
$html = &filter_javascript($html);
|
||||
$html = &safe_urls($html);
|
||||
|
||||
Reference in New Issue
Block a user