Subversion Repositories Kolibri OS

Rev

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

Rev 8319 Rev 8350
Line 205... Line 205...
205
 
205
 
Line 206... Line 206...
206
	if (check_is_the_url_absolute(new_URL)) return orig_URL;
206
	if (check_is_the_url_absolute(new_URL)) return orig_URL;
207
 
207
 
208
	IF (!strncmp(new_URL,"//", 2)) 
208
	IF (!strncmp(new_URL,"//", 2)) 
209
	{
209
	{
210
		strcpy(#newurl, "http:");
210
		strncpy(#newurl, "http:", URL_SIZE);
211
		strcat(#newurl, new_URL);
211
		strncat(#newurl, new_URL, URL_SIZE);
212
		strcpy(orig_URL, #newurl);
212
		strncpy(orig_URL, #newurl, URL_SIZE);
Line 213... Line 213...
213
		return orig_URL;
213
		return orig_URL;
Line 234... Line 234...
234
		new_URL+=3;
234
		new_URL+=3;
235
		newurl[strrchr(#newurl, '/')-1] = 0x00;
235
		newurl[strrchr(#newurl, '/')-1] = 0x00;
236
		goto _CUT_ST_LEVEL_MARK;
236
		goto _CUT_ST_LEVEL_MARK;
237
	}
237
	}
Line 238... Line 238...
238
	
238
	
Line 239... Line 239...
239
	if (newurl[strlen(#newurl)-1]<>'/') strcat(#newurl, "/"); 
239
	if (newurl[strlen(#newurl)-1]<>'/') strncat(#newurl, "/", URL_SIZE); 
240
	
240
	
241
	strcat(#newurl, new_URL);
241
	strncat(#newurl, new_URL, URL_SIZE);
242
	strcpy(orig_URL, #newurl);
242
	strncpy(orig_URL, #newurl, URL_SIZE);
Line 243... Line 243...
243
	return orig_URL;
243
	return orig_URL;
244
}
244
}