Trim datasource names before writing to datafile.
This commit is contained in:
committed by
Patrick Niklaus
parent
57dbb18c4c
commit
0587c5f5c4
@@ -624,7 +624,11 @@ std::size_t Contractor::LoadEdgeExpandedGraph(
|
||||
datasource_stream << "lua profile" << std::endl;
|
||||
for (auto const &name : segment_speed_filenames)
|
||||
{
|
||||
datasource_stream << name << std::endl;
|
||||
// Only write the filename, without path or extension.
|
||||
// This prevents information leakage, and keeps names short
|
||||
// for rendering in the debug tiles.
|
||||
const boost::filesystem::path p(name);
|
||||
datasource_stream << p.stem().string() << std::endl;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user