Escape error messages for HTML.

This commit is contained in:
Jeff Young 2024-01-05 11:02:47 +00:00
parent f07d797ab3
commit 015a050169
2 changed files with 2 additions and 2 deletions

View File

@ -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>" ) );

View File

@ -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;