webengine/osswebengine/WebKit/s60/plugins/PluginStream.cpp
changeset 10 a359256acfc6
parent 0 dd21522fd290
child 11 c8a366e56285
equal deleted inserted replaced
5:10e98eab6f85 10:a359256acfc6
   280         TInt i = fileExtPtr.Locate('?');
   280         TInt i = fileExtPtr.Locate('?');
   281         if (i >= 0) {
   281         if (i >= 0) {
   282             fileExtPtr.Set(fileExtPtr.Left(i));
   282             fileExtPtr.Set(fileExtPtr.Left(i));
   283         }
   283         }
   284 
   284 
       
   285         // remove any '/' at the end  
       
   286     if ( fileExtPtr[fileExtPtr.Length() - 1] == '/' ) {
       
   287             fileExtPtr.Set(fileExtPtr.Left(fileExtPtr.Length() - 1));
       
   288         } 
       
   289         
   285         //  Trim anything left of path, the last '/'
   290         //  Trim anything left of path, the last '/'
   286         // "http://www.xyz.com/flashy.swf" -> "flashy.swf"
   291         // "http://www.xyz.com/flashy.swf" -> "flashy.swf"
   287         i = fileExtPtr.LocateReverse('/');
   292         i = fileExtPtr.LocateReverse('/');
   288         if (i >= 0) {
   293         if (i >= 0) {
   289             fileExtPtr.Set(fileExtPtr.Mid(i+1));
   294             fileExtPtr.Set(fileExtPtr.Mid(i+1));