equal
deleted
inserted
replaced
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)); |