diff options
author | click <none@none> | 2010-05-27 04:41:02 +0200 |
---|---|---|
committer | click <none@none> | 2010-05-27 04:41:02 +0200 |
commit | ca5f51d48fc6b70927d731bdd6578f4f77fae33c (patch) | |
tree | e6b9923d714b6790442ccf816c7d984feeda50c6 | |
parent | c0f099c9c9db54a5b5289e748e254741624ccb5c (diff) |
Don't parse "== START DUMP" or "== END DUMP" lines when attempting to load dumpfiles (another PEBKAC-check)
--HG--
branch : trunk
-rw-r--r-- | src/game/PlayerDump.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/game/PlayerDump.cpp b/src/game/PlayerDump.cpp index 302afb1e629..8ebcbce50c8 100644 --- a/src/game/PlayerDump.cpp +++ b/src/game/PlayerDump.cpp @@ -437,8 +437,10 @@ DumpReturn PlayerDumpReader::LoadDump(const std::string& file, uint32 account, s if (nw_pos == std::string::npos) continue; - // skip NOTE - if (line.substr(nw_pos,15) == "IMPORTANT NOTE:") + // skip logfile-side dump start notice, the important notes and dump end notices + if ((line.substr(nw_pos,16) == "== START DUMP ==") || + (line.substr(nw_pos,15) == "IMPORTANT NOTE:") || + (line.substr(nw_pos,14) == "== END DUMP ==")) continue; // add required_ check |