Project

General

Profile

Bug #838 ยป mod_evhost.patch

patch -- zak.johnson - Anonymous, 2006-09-03 18:22

View differences:

src/mod_evhost.c Sun Sep 3 11:12:05 2006
172 172
	/* first, find the domain + tld */
173 173
	for(;ptr > con->uri.authority->ptr;ptr--) {
174 174
		if(*ptr == '.') {
175
			if(first) first = 0;
176
			else      break;
175
			if (ptr != colon - 1) {
176
				if(first) first = 0;
177
				else      break;
178
			} else {
179
				/* ignore trailing dot in hostname */
180
				colon = ptr;
181
			}
177 182
		} else if(*ptr == ':') {
178 183
			colon = ptr;
179 184
			first = 1;
    (1-1/1)