Changeset 86 for Mulberry/branches/v4.1d1/Sources_Common/Mail/URLs/CURL.cp
- Timestamp:
- 07/09/07 10:02:18 (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
Mulberry/branches/v4.1d1/Sources_Common/Mail/URLs/CURL.cp
r19 r86 155 155 156 156 // Strip off main scheme 157 if (temp.compare_start(cURLMainScheme ))157 if (temp.compare_start(cURLMainScheme, true)) 158 158 temp.erase(0, ::strlen(cURLMainScheme)); 159 159 160 160 // Only handle HTTP, HTTPS & Webcal right now 161 161 uint32_t punt_size = 0; 162 if (temp.compare_start(cHTTPURLScheme ))162 if (temp.compare_start(cHTTPURLScheme, true)) 163 163 { 164 164 mSchemeType = eHTTP; 165 165 punt_size = ::strlen(cHTTPURLScheme); 166 166 } 167 else if (temp.compare_start(cHTTPSURLScheme ))167 else if (temp.compare_start(cHTTPSURLScheme, true)) 168 168 { 169 169 mSchemeType = eHTTPS; 170 170 punt_size = ::strlen(cHTTPSURLScheme); 171 171 } 172 else if (temp.compare_start(cWEBCALURLScheme ))172 else if (temp.compare_start(cWEBCALURLScheme, true)) 173 173 { 174 174 mSchemeType = eWebcal; 175 175 punt_size = ::strlen(cWEBCALURLScheme); 176 } 177 else if (temp.compare_start(cMailtoURLScheme, true)) 178 { 179 mSchemeType = eMailto; 180 punt_size = ::strlen(cMailtoURLScheme); 176 181 } 177 182 … … 221 226 break; 222 227 } 228 case eMailto: 229 { 230 if (punt_size != 0) 231 { 232 mScheme.assign(temp, 0, punt_size); 233 temp.erase(0, punt_size); 234 } 235 236 // Look for server 237 mServer = temp; 238 break; 239 } 240 223 241 default:; 224 242 }