Skip to content

Commit

Permalink
sanitize path in logger instead
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsc committed Jul 1, 2022
1 parent a0a790b commit 082d23a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/formatter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

#include <sstream>
#include <utility>
#include "filesystem.hpp"

/**
* std::ostringstream wrapper.
Expand Down Expand Up @@ -60,7 +61,7 @@ class formatter

std::string str() const
{
return stream_.str();
return filesystem::sanitize_path(stream_.str());
}

// Implicit x-value conversion to string
Expand Down

0 comments on commit 082d23a

Please sign in to comment.