Skip to content

Commit

Permalink
additional string var not really needed, re #10591
Browse files Browse the repository at this point in the history
  • Loading branch information
FedeMPouzols committed Feb 20, 2015
1 parent 9ab9fe5 commit 948188d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Code/Mantid/Framework/Kernel/src/InternetHelper.cpp
Expand Up @@ -208,14 +208,12 @@ int InternetHelper::sendRequest(const std::string &url,
*/
void InternetHelper::logDebugRequestSending(const std::string &schemeName,
const std::string &url) const {
std::string methodStr = (HTTPRequest::HTTP_GET==m_method)?
"GET" : "POST";
const std::string insecString = "password=";
if (std::string::npos == url.find(insecString)) {
g_log.debug() << "Sending " << schemeName << " " << methodStr <<
g_log.debug() << "Sending " << schemeName << " " << m_method <<
" request to: " << url << "\n";
} else {
g_log.debug() << "Sending " << schemeName << " " << methodStr <<
g_log.debug() << "Sending " << schemeName << " " << m_method <<
" request to an url where the query string seems to contain a "
"password! (not shown for security reasons)." << "\n";
}
Expand Down

0 comments on commit 948188d

Please sign in to comment.