|
@@ -130,9 +130,9 @@ end;
|
|
---------------------------------------------------------------------}
|
|
---------------------------------------------------------------------}
|
|
|
|
|
|
const
|
|
const
|
|
- AttrSpecialChars = ['<', '>', '"', '&', #9, #10, #13];
|
|
|
|
- TextSpecialChars = ['<', '>', '&', #10, #13];
|
|
|
|
- CDSectSpecialChars = [']'];
|
|
|
|
|
|
+ AttrSpecialChars = ['<', '>', '"', '&', #0..#$1F];
|
|
|
|
+ TextSpecialChars = ['<', '>', '&', #0..#8, #10..#$1F];
|
|
|
|
+ CDSectSpecialChars = [#0..#8, #11, #12, #14..#$1F, ']'];
|
|
LineEndingChars = [#13, #10];
|
|
LineEndingChars = [#13, #10];
|
|
QuotStr = '"';
|
|
QuotStr = '"';
|
|
AmpStr = '&';
|
|
AmpStr = '&';
|
|
@@ -323,7 +323,7 @@ begin
|
|
#10: Sender.wrtStr('
');
|
|
#10: Sender.wrtStr('
');
|
|
#13: Sender.wrtStr('
');
|
|
#13: Sender.wrtStr('
');
|
|
else
|
|
else
|
|
- Sender.wrtChr(s[idx]);
|
|
|
|
|
|
+ raise EConvertError.Create('Illegal character');
|
|
end;
|
|
end;
|
|
end;
|
|
end;
|
|
|
|
|
|
@@ -344,7 +344,7 @@ begin
|
|
end;
|
|
end;
|
|
#10: Sender.wrtStr(Sender.FLineBreak);
|
|
#10: Sender.wrtStr(Sender.FLineBreak);
|
|
else
|
|
else
|
|
- Sender.wrtChr(s[idx]);
|
|
|
|
|
|
+ raise EConvertError.Create('Illegal character');
|
|
end;
|
|
end;
|
|
end;
|
|
end;
|
|
|
|
|
|
@@ -355,9 +355,10 @@ begin
|
|
'<': Sender.wrtStr(ltStr);
|
|
'<': Sender.wrtStr(ltStr);
|
|
'>': Sender.wrtStr(gtStr);
|
|
'>': Sender.wrtStr(gtStr);
|
|
'&': Sender.wrtStr(AmpStr);
|
|
'&': Sender.wrtStr(AmpStr);
|
|
- #13: Sender.wrtStr('
')
|
|
|
|
|
|
+ #13: Sender.wrtStr('
');
|
|
|
|
+ #10: Sender.wrtChr(#10);
|
|
else
|
|
else
|
|
- Sender.wrtChr(s[idx]);
|
|
|
|
|
|
+ raise EConvertError.Create('Illegal character');
|
|
end;
|
|
end;
|
|
end;
|
|
end;
|
|
|
|
|
|
@@ -371,7 +372,7 @@ begin
|
|
// TODO: emit warning 'cdata-section-splitted'
|
|
// TODO: emit warning 'cdata-section-splitted'
|
|
end
|
|
end
|
|
else
|
|
else
|
|
- Sender.wrtChr(s[idx]);
|
|
|
|
|
|
+ raise EConvertError.Create('Illegal character');
|
|
end;
|
|
end;
|
|
|
|
|
|
const
|
|
const
|