browserui/browser/BrowserAppSrc/BrowserUtil.cpp
changeset 18 4530440261a8
parent 0 84ad3b177aa3
child 31 868cceedabd3
equal deleted inserted replaced
15:e45c3f40ea5f 18:4530440261a8
   332 
   332 
   333     TInt space(KErrNotFound);
   333     TInt space(KErrNotFound);
   334     TInt spaces(0);
   334     TInt spaces(0);
   335     TPtr ptr = aString->Des();
   335     TPtr ptr = aString->Des();
   336     
   336     
       
   337     //Trim leading and trailing spaces in URL before encoding spaces inside URL
       
   338     ptr.Trim();
       
   339         
   337     for (TInt i = ptr.Length()-1; i > 0 ; i--)
   340     for (TInt i = ptr.Length()-1; i > 0 ; i--)
   338         {
   341         {
   339         if (ptr[i] == ' ')
   342         if (ptr[i] == ' ')
   340             {
   343             {
   341             spaces++;
   344             spaces++;