Subversion Repositories Kolibri OS

Rev

Rev 7281 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7281 Rev 7282
Line 1... Line -...
1
int UrlIsAbsolute(dword in)
-
 
2
{
-
 
3
	if(!strncmp(in,"http:",5)) return true;
-
 
4
	if(!strncmp(in,"https:",6)) return true;
-
 
5
	if(!strncmp(in,"file:",5)) return true;
-
 
6
	if(!strncmp(in,"mailto:",7)) return true;
-
 
7
	if(!strncmp(in,"ftp:",4)) return true;
-
 
8
	if(!strncmp(in,"WebView:",8)) return true;
-
 
9
	if(!strncmp(in,"/sys/",5)) return true;
-
 
10
	if(!strncmp(in,"/hd/",4)) return true;
-
 
11
	if(!strncmp(in,"/fd/",4)) return true;
-
 
12
	if(!strncmp(in,"/rd/",4)) return true;
-
 
13
	if(!strncmp(in,"/tmp/",5)) return true;
-
 
14
	if(!strncmp(in,"/cd/",4)) return true;
-
 
15
	if(!strncmp(in,"/bd/",4)) return true;
-
 
16
	if(!strncmp(in,"/usbhd/",7)) return true;
-
 
17
	if(!strncmp(in,"/kolibrios/",11)) return true;
-
 
18
	return false;
-
 
19
}
-
 
20
 
-
 
21
void GetAbsoluteURL(dword in_URL)
1
void GetAbsoluteURL(dword in_URL)
22
{
2
{
23
	int i;
3
	int i;
24
	dword orig_URL = in_URL;
4
	dword orig_URL = in_URL;
25
	char newurl[sizeof(URL)];
5
	char newurl[sizeof(URL)];
Line 28... Line 8...
28
	{
8
	{
29
		strcpy(i+1, i+5);
9
		strcpy(i+1, i+5);
30
	}
10
	}
31
 
11
 
Line 32... Line 12...
32
	if (UrlIsAbsolute(in_URL)) return;
12
	if (check_is_the_url_absolute(in_URL)) return;
Line 33... Line 13...
33
 
13
 
34
	IF (!strcmpn(in_URL,"//", 2)) 
14
	IF (!strcmpn(in_URL,"//", 2)) 
35
	{
15
	{
36
		//strcpy(#newurl, "http:");
16
		//strcpy(#newurl, "http:");