public static String checkProtocol(String file)
{
String protocol = FILE;
-
- if (file.indexOf("http:") > -1 || file.indexOf("file:") > -1)
+ String ft = file.toLowerCase().trim();
+ if (ft.indexOf("http:") ==0 || ft.indexOf("https:") ==0 || ft.indexOf("file:") == 0)
{
protocol = URL;
}