Remove full path from drill report

Leaves just file name in place.  Full paths are considered a security
risk for some

Fixes https://gitlab.com/kicad/code/kicad/issues/6949
This commit is contained in:
Seth Hillbrand 2021-01-05 16:21:24 -08:00
parent 71a93c71f7
commit fd04a176a4
1 changed files with 2 additions and 2 deletions

View File

@ -338,11 +338,11 @@ bool GENDRILL_WRITER_BASE::GenDrillReportFile( const wxString& aFullFileName )
wxASSERT( m_pcb ); wxASSERT( m_pcb );
unsigned totalHoleCount; unsigned totalHoleCount;
wxString brdFilename = m_pcb->GetFileName(); wxFileName brdFilename( m_pcb->GetFileName() );
std::vector<DRILL_LAYER_PAIR> hole_sets = getUniqueLayerPairs(); std::vector<DRILL_LAYER_PAIR> hole_sets = getUniqueLayerPairs();
out.Print( 0, "Drill report for %s\n", TO_UTF8( brdFilename ) ); out.Print( 0, "Drill report for %s\n", TO_UTF8( brdFilename.GetFullName() ) );
out.Print( 0, "Created on %s\n\n", TO_UTF8( DateAndTime() ) ); out.Print( 0, "Created on %s\n\n", TO_UTF8( DateAndTime() ) );
// Output the cu layer stackup, so layer name references make sense. // Output the cu layer stackup, so layer name references make sense.