Rev 7163 | 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,"file:",5)) return true; |
||
7163 | leency | 6 | if(!strncmp(in,"mailto:",7)) return true; |
5990 | leency | 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 | |||
22 | { |
||
23 | int i; |
||
24 | dword orig_URL = in_URL; |
||
25 | char newurl[sizeof(URL)]; |
||
26 | |||
27 | |||
28 | { |
||
29 | strcpy(i+1, i+5); |
||
30 | } |
||
31 | |||
32 | |||
33 | |||
7163 | leency | 34 | |
35 | { |
||
36 | //strcpy(#newurl, "http:"); |
||
37 | //strcat(#newurl, in_URL); |
||
38 | sprintf(#newurl, "http:%s", in_URL); |
||
39 | strcpy(orig_URL, #newurl); |
||
40 | return; |
||
41 | } |
||
42 | |||
5990 | leency | 43 | |
44 | if (!http.transfer) |
||
7281 | leency | 45 | { |
5990 | leency | 46 | strcpy(#newurl, history.current()); |
6021 | leency | 47 | } |
5990 | leency | 48 | else |
49 | { |
||
50 | strcpy(#newurl, history.items.get(history.active-2)); |
||
6021 | leency | 51 | } |
5990 | leency | 52 | |
53 | |||
54 | { |
||
55 | i = strchr(#newurl+8, '/'); |
||
56 | if (i) ESBYTE[i]=0; |
||
57 | in_URL+=1; |
||
58 | } |
||
59 | |||
60 | |||
61 | |||
62 | |||
63 | { |
||
64 | newurl[strrchr(#newurl, '/')] = 0x00; |
||
65 | } |
||
66 | |||
67 | |||
68 | { |
||
69 | in_URL+=3; |
||
70 | newurl[strrchr(#newurl, '/')-1] = 0x00; |
||
71 | goto _CUT_ST_LEVEL_MARK; |
||
72 | } |
||
73 | |||
74 | |||
75 | |||
76 | |||
77 | strcpy(orig_URL, #newurl); |
||
78 | }>> |
||
79 |