Escape error messages for HTML.
This commit is contained in:
parent
f07d797ab3
commit
015a050169
|
@ -124,7 +124,7 @@ void FOOTPRINT_LIST::DisplayErrors( wxTopLevelWindow* aWindow )
|
|||
|
||||
while( std::unique_ptr<IO_ERROR> error = PopError() )
|
||||
{
|
||||
wxString tmp = error->Problem();
|
||||
wxString tmp = EscapeHTML( error->Problem() );
|
||||
|
||||
// Preserve new lines in error messages so queued errors don't run together.
|
||||
tmp.Replace( wxS( "\n" ), wxS( "<BR>" ) );
|
||||
|
|
|
@ -724,7 +724,7 @@ APAD6::APAD6( ALTIUM_PARSER& aReader )
|
|||
size_t subrecord5 = aReader.ReadAndSetSubrecordLength();
|
||||
|
||||
if( subrecord5 < 114 )
|
||||
THROW_IO_ERROR( wxT( "Pads6 stream subrecord has length < 114, which is unexpected" ) );
|
||||
THROW_IO_ERROR( wxT( "Pads6 stream subrecord5 has length < 114, which is unexpected" ) );
|
||||
|
||||
layer = static_cast<ALTIUM_LAYER>( aReader.Read<uint8_t>() );
|
||||
tolayer = ALTIUM_LAYER::UNKNOWN;
|
||||
|
|
Loading…
Reference in New Issue