Skip to content
Snippets Groups Projects
Commit 7b1bbca6 authored by jsclose's avatar jsclose
Browse files

fixed bug

parent 1d03fcbc
No related branches found
No related tags found
2 merge requests!12Searcher,!11Searcher
No preview for this file type
...@@ -124,7 +124,8 @@ public: ...@@ -124,7 +124,8 @@ public:
CompleteUrl = string(temp_CompleteUrl, strlen(temp_CompleteUrl)); CompleteUrl = string(temp_CompleteUrl, strlen(temp_CompleteUrl));
//remove question marks //remove question marks
size_t found = CompleteUrl.find("?"); size_t found = CompleteUrl.find("?");
CompleteUrl.erase(found, CompleteUrl.size( )); if(found < CompleteUrl.size( ) )
CompleteUrl.erase(found, CompleteUrl.size( ));
Service = string(temp_Service, strlen(temp_Service)); Service = string(temp_Service, strlen(temp_Service));
Host = string(temp_Host, strlen(temp_Host)); Host = string(temp_Host, strlen(temp_Host));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment