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:
parent
71a93c71f7
commit
fd04a176a4
|
@ -338,11 +338,11 @@ bool GENDRILL_WRITER_BASE::GenDrillReportFile( const wxString& aFullFileName )
|
|||
wxASSERT( m_pcb );
|
||||
|
||||
unsigned totalHoleCount;
|
||||
wxString brdFilename = m_pcb->GetFileName();
|
||||
wxFileName brdFilename( m_pcb->GetFileName() );
|
||||
|
||||
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() ) );
|
||||
|
||||
// Output the cu layer stackup, so layer name references make sense.
|
||||
|
|
Loading…
Reference in New Issue