Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dkastl committed Sep 14, 2012
2 parents 2a20f6e + a120fc2 commit 5f6b52e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/Export2DB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,11 +304,12 @@ void Export2DB::exportWays(std::vector<Way*>& ways, Configuration* config)
row_data += "\t";
if(!way->name.empty())
{
std::string escaped_name = way->name;
boost::replace_all(escaped_name, "\t", "\\\t");
boost::replace_all(escaped_name, "\n", "");
boost::replace_all(escaped_name, "\r", "");
row_data += escaped_name.substr(0,199);
std::string escaped_name = way->name;
boost::replace_all(escaped_name, "\t", "\\\t");
boost::replace_all(escaped_name, "\n", "");
boost::replace_all(escaped_name, "\r", "");
boost::replace_all(escaped_name, "\\", "");
row_data += escaped_name.substr(0,199);
}
row_data += "\n";
PQputline(mycon, row_data.c_str());
Expand Down

0 comments on commit 5f6b52e

Please sign in to comment.