Subversion Repositories Kolibri OS

Rev

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

Rev 4364 Rev 5043
Line 89... Line 89...
89
 
89
 
90
	res = url_path(url, &path);
90
	res = url_path(url, &path);
91
	if (res != URL_FUNC_OK) {
91
	if (res != URL_FUNC_OK) {
92
		return NULL;
92
		return NULL;
93
	}
-
 
-
 
93
	}
94
 
94
	__menuet__debug_out("Calling url_unescape from findfile.c");
95
	res = url_unescape(path, &respath);
95
	res = url_unescape(path, &respath);
96
	free(path);
96
	free(path);
97
	if (res != URL_FUNC_OK) {
97
	if (res != URL_FUNC_OK) {
98
		return NULL;
98
		return NULL;
Line 99... Line 99...
99
	}
99
	}
-
 
100
 
100
 
101
LOG(("Findfile url2path: %s", respath));
101
LOG(("Findfile url2path: %s", respath));
102
 __menuet__debug_out("returning from url_to_path in findfile.c\n");
Line 102... Line 103...
102
	return respath;
103
	return respath;
103
}
104
}
Line 111... Line 112...
111
	if (strcmp(path, "favicon.ico") == 0)
112
	if (strcmp(path, "favicon.ico") == 0)
112
		path = "favicon.png";
113
		path = "favicon.png";
Line 113... Line 114...
113
 
114
 
Line 114... Line 115...
114
	raw = path_to_url(filepath_sfind(respaths, buf, path));
115
	raw = path_to_url(filepath_sfind(respaths, buf, path));
115
	
116
	
116
	LOG(("Findfile gui: %s", raw));
117
	LOG(("Findfile gui: path is %s, raw is %s", path, raw));
117
	if (raw != NULL) {
118
	if (raw != NULL) {
118
		nsurl_create(raw, &url);
119
		nsurl_create(raw, &url);