Subversion Repositories Kolibri OS

Rev

Rev 5990 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5990 leency 1
 
2
{
3
	if(!strncmp(in,"http:",5)) return true;
4
	if(!strncmp(in,"https:",6)) return true;
5
	if(!strncmp(in,"mailto:",7)) return true;
6
	if(!strncmp(in,"ftp:",4)) return true;
7
	if(!strncmp(in,"WebView:",8)) return true;
8
	if(!strncmp(in,"/sys/",5)) return true;
9
	if(!strncmp(in,"/hd/",4)) return true;
10
	if(!strncmp(in,"/fd/",4)) return true;
11
	if(!strncmp(in,"/rd/",4)) return true;
12
	if(!strncmp(in,"/tmp/",5)) return true;
13
	if(!strncmp(in,"/cd/",4)) return true;
14
	if(!strncmp(in,"/bd/",4)) return true;
15
	if(!strncmp(in,"/usbhd/",7)) return true;
16
	if(!strncmp(in,"/kolibrios/",11)) return true;
17
	return false;
18
}
19
20
 
21
{
22
	int i;
23
	dword orig_URL = in_URL;
24
	char newurl[sizeof(URL)];
25
26
 
27
	{
28
		strcpy(i+1, i+5);
29
	}
30
31
 
32
33
 
34
	if (!http_transfer)
35
	{
36
		strcpy(#newurl, history.current());
6021 leency 37
	}
5990 leency 38
	else
39
	{
40
		strcpy(#newurl, history.items.get(history.active-2));
6021 leency 41
	}
5990 leency 42
43
 
44
	{
45
		i = strchr(#newurl+8, '/');
46
		if (i) ESBYTE[i]=0;
47
		in_URL+=1;
48
	}
49
50
 
51
52
 
53
	{
54
		newurl[strrchr(#newurl, '/')] = 0x00;
55
	}
56
57
 
58
	{
59
		in_URL+=3;
60
		newurl[strrchr(#newurl, '/')-1] = 0x00;
61
		goto _CUT_ST_LEVEL_MARK;
62
	}
63
64
 
65
66
 
67
	strcpy(orig_URL, #newurl);
68
}
69