1 yl::string CBaseAutopProcessor::AddAuthorizedInfo(const yl::string & strOriginalUrl, 2 const yl::string & strUserName, const yl::string & strPassword) 3 { 4 yl::string strUrl = strOriginalUrl;//cow exist error 5 6 if (strOriginalUrl.empty() 7 || strUserName.empty()) 8 { 9 return strUrl; 10 } 11 12 char * pBuf = (char *) strUrl.c_str(); 13 char * pTemp = NULL; 14 if ((pTemp = strstr(pBuf, "://")) != NULL) 15 { 16 *pTemp = '