mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 05:28:00 +00:00
handle <!ENTITY within <!DOCTYPE
This commit is contained in:
parent
6715db6593
commit
3db767c98f
@ -317,6 +317,25 @@ foreach $file (keys %file_types) {
|
||||
while (/^<!DOCTYPE/ || /^<!ENTITY/ || /^<\?xml-stylesheet/ || /^<\?xml /) {
|
||||
# print "SGML: $_";
|
||||
$before_copyright = "$before_copyright$_";
|
||||
if (/\]>$/ ) {
|
||||
$_ = <SOURCE>;
|
||||
close(SOURCE) if (eof(SOURCE));
|
||||
next;
|
||||
}
|
||||
if (/^<!DOCTYPE/) {
|
||||
while (!eof(SOURCE)) {
|
||||
$_ = <SOURCE>;
|
||||
next if (eof(SOURCE));
|
||||
$before_copyright =
|
||||
"$before_copyright$_";
|
||||
if (/]>$/) {
|
||||
$_ = <SOURCE>;
|
||||
last;
|
||||
}
|
||||
}
|
||||
close(SOURCE) if (eof(SOURCE));
|
||||
next;
|
||||
}
|
||||
if (/>$/ ) {
|
||||
$_ = <SOURCE>;
|
||||
close(SOURCE) if (eof(SOURCE));
|
||||
|
Loading…
x
Reference in New Issue
Block a user