diff options
author | Alex Borisov <borisov.alexandr@rambler.ru> | 2011-12-03 02:24:59 +0200 |
---|---|---|
committer | Alex Borisov <borisov.alexandr@rambler.ru> | 2011-12-03 02:24:59 +0200 |
commit | 76c3fe23ae4cfee0581c72b40ef3d11e7502ebbc (patch) | |
tree | ca5818f466bbd353610c66b5cd6ab6f67cd866c4 | |
parent | b4b3df8a16aef72a6ca921ada062c2982b959c55 (diff) |
FIX famous \n bug
-rw-r--r-- | server/server/config.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/server/config.cpp b/server/server/config.cpp index 9f2e688..9f9e9fb 100644 --- a/server/server/config.cpp +++ b/server/server/config.cpp @@ -203,7 +203,7 @@ void config::load_proxy_list(char *pth) while(p2 != std::string::npos) { std::string line = cfg_str.substr(p1, p2-p1); - p1 = p2+l; + p1 = p2+l+1; std::string::size_type lp1 = 0, lp2 = 0; std::string host, login, password, country, state, city; int port = 0; @@ -275,7 +275,7 @@ void config::load_static_proxy_list(char *pth) while(p2 != std::string::npos) { std::string line = cfg_str.substr(p1, p2-p1); - p1 = p2+l; + p1 = p2+l+1; std::string::size_type lp1 = 0, lp2 = 0; std::string host, login, password, label; int port = 0, position = 0; @@ -340,7 +340,7 @@ void config::load_firewall_list(char* pth) while(p2 != std::string::npos) { std::string line = cfg_str.substr(p1, p2-p1); - p1 = p2+l; + p1 = p2+l+1; firewall_list.push_back(line); p2 = cfg_str.find(';', p1); } @@ -369,7 +369,7 @@ void config::load_deleted_list(char* pth) while(p2 != std::string::npos) { std::string line = cfg_str.substr(p1, p2-p1); - p1 = p2+l; + p1 = p2+l+1; deleted_list.push_back(line); p2 = cfg_str.find(';', p1); } |