diff -r 9eefb50e711a -r 1cab1a4490f8 deviceupdatesui/deviceupdates/src/nsmldmsyncprofile.cpp --- a/deviceupdatesui/deviceupdates/src/nsmldmsyncprofile.cpp Sun Mar 21 15:34:22 2010 +0530 +++ b/deviceupdatesui/deviceupdates/src/nsmldmsyncprofile.cpp Sun Apr 18 12:10:52 2010 +0530 @@ -617,14 +617,17 @@ { return; } + TBuf newUrl; + convertBackslashinUrl(aText,newUrl); + if (BearerType() != EAspBearerInternet) { // port number handling is for internet bearer only - TUtil::StrCopy(iBuf, aText); + TUtil::StrCopy(iBuf, newUrl); } else { - TURIParser parser(aText); + TURIParser parser(newUrl); parser.GetUri(iBuf, aPort); } @@ -632,6 +635,23 @@ iConnection.SetServerURIL( iBuf8 ); } +void CNSmlDMSyncProfile::convertBackslashinUrl(const TDesC& aUrl, TDes& aModifiedUrl ) + { + TBuf backSlash(KBackSlash); + TBuf forwardSlash(KSlash); + for (TInt i = 0; i < aUrl.Length(); i++) + { + TChar ch = aUrl[i]; + if (ch == backSlash[0] ) + { + aModifiedUrl.Append(forwardSlash[0]); + } + else + { + aModifiedUrl.Append(ch); + } + } + } // ----------------------------------------------------------------------------- // CNSmlDMSyncProfile::GetUserNameL // -----------------------------------------------------------------------------