亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? htparse.c

?? firtext搜索引擎源碼
?? C
?? 第 1 頁 / 共 2 頁
字號:
	    char *orig=dot, *dest=dot+1;	    while((*orig++ = *dest++));	    if (port) port--;	    path--;	}    }    /* Chop off port if `:', `:80' (http), `:70' (gopher), or `:21' (ftp) */    if (port) {	if (!*(port+1) || *(port+1)=='/') {	    if (!newname) {		char *orig=port, *dest=port+1;		while((*orig++ = *dest++));	    }	} else if ((!strncmp(access, "http", 4) &&	     (*(port+1)=='8'&&*(port+2)=='0'&&(*(port+3)=='/'||!*(port+3)))) ||	    (!strncmp(access, "gopher", 6) &&	     (*(port+1)=='7'&&*(port+2)=='0'&&(*(port+3)=='/'||!*(port+3)))) ||	    (!strncmp(access, "ftp", 3) &&	     (*(port+1)=='2'&&*(port+2)=='1'&&(*(port+3)=='/'||!*(port+3))))) {	    if (!newname) {		char *orig=port, *dest=port+3;		while((*orig++ = *dest++));		path -= 3;   	       /* Update path position, Henry Minsky */	    }	} else if (newname)	    strncat(newname, port, (int) (path-port));    }    if (newname) {	char *newpath = newname+strlen(newname);	strcat(newname, path);	path = newpath;	HT_FREE(*filename);				    /* Free old copy */	*filename = newname;    }    return path;}/***  Search the URL and determine whether it is a relative or absolute URL.**  We check to see if there is a ":" before any "/", "?", and "#". If this**  is the case then we say it is absolute. Otherwise it is relative.*/PUBLIC BOOL HTURL_isAbsolute (const char * url){        if (url) {		const char * ptr = url;	while (*ptr) {	    if (*ptr == ':') return YES;	    if (*ptr == '/' || *ptr == '?' || *ptr == '#') break;	    ptr ++;	}    }	    return NO;}/*	        Simplify a URI//		--------------// A URI is allowed to contain the seqeunce xxx/../ which may be// replaced by "" , and the seqeunce "/./" which may be replaced by "/".// Simplification helps us recognize duplicate URIs. ////	Thus, 	/etc/junk/../fred 	becomes	/etc/fred//		/etc/junk/./fred	becomes	/etc/junk/fred////      but we should NOT change//		http://fred.xxx.edu/../..////	or	../../albert.html//// In order to avoid empty URLs the following URLs become:////		/fred/..		becomes /fred/..//		/fred/././..		becomes /fred/..//		/fred/.././junk/.././	becomes /fred/..//// If more than one set of `://' is found (several proxies in cascade) then// only the part after the last `://' is simplified.//// Returns: A string which might be the old one or a new one.*/PUBLIC char *HTSimplify (char ** url){    char *path;    char *p;    if (!url || !*url) {	HTTRACE(URI_TRACE, "HTSimplify.. Nothing done\n");	return *url;    }    HTTRACE(URI_TRACE, "HTSimplify.. `%s\' " _ *url);    /* Find any scheme name */    if ((path = strstr(*url, "://")) != NULL) {		   /* Find host name */	char *newptr;	char *access = *url;	while (access<path && (*access=TOLOWER(*access))) access++;	path += 3;	while ((newptr = strstr(path, "://")) != NULL)        /* For proxies */	    path = newptr+3;	path = HTCanon(url, path);       	      /* We have a host name */    } else if ((path = strstr(*url, ":/")) != NULL) {	path += 2;    } else	path = *url;    if (*path == '/' && *(path+1)=='/') {	  /* Some URLs start //<foo> */	path += 1;    } else if (!strncmp(path, "news:", 5)) {	char *ptr = strchr(path+5, '@');	if (!ptr) ptr = path+5;	while (*ptr) {			    /* Make group or host lower case */	    *ptr = TOLOWER(*ptr);	    ptr++;	}	HTTRACE(URI_TRACE, "into\n............ `%s'\n" _ *url);	return *url;		      /* Doesn't need to do any more */    }    if ((p = path)) {	char *end;	if (!((end = strchr(path, ';')) || (end = strchr(path, '?')) ||	      (end = strchr(path, '#'))))	    end = path+strlen(path);	/* Parse string second time to simplify */	p = path;	while(p<end) {	    if (*p=='/') {		if (p>*url && *(p+1)=='.' && (*(p+2)=='/' || !*(p+2))) {		    char *orig = p+1;		    char *dest = (*(p+2)!='/') ? p+2 : p+3;		    while ((*orig++ = *dest++)); /* Remove a slash and a dot */		    end = orig-1;		} else if (*(p+1)=='.' && *(p+2)=='.' && (*(p+3)=='/' || !*(p+3))) {		    char *q = p;		    while (q>path && *--q!='/');	       /* prev slash */		    if (strncmp(q, "/../", 4)) {			char *orig = q+1;			char *dest = (*(p+3)!='/') ? p+3 : p+4;			while ((*orig++ = *dest++));	   /* Remove /xxx/.. */			end = orig-1;			p = q;		      /* Start again with prev slash */		    } else			p++;		} else if (*(p+1)=='/') {		    while (*(p+1)=='/') {			char *orig=p, *dest=p+1;			while ((*orig++ = *dest++));  /* Remove multiple /'s */			end = orig-1;		    }		} else		    p++;	    } else		p++;	}    }    /*    **  Check for host/../.. kind of things    */    while (*path=='/' && *(path+1)=='.' && *(path+2)=='.' &&	   (!*(path+3) || *(path+3)=='/')) {	char * orig = path;	char * dest = path+3;	while ((*orig++ = *dest++));    }    HTTRACE(URI_TRACE, "into\n............ `%s'\n" _ *url);    return *url;}/*		Make Relative Name**		------------------**** This function creates and returns a string which gives an expression of** one address as related to another. Where there is no relation, an absolute** address is retured.****  On entry,**	Both names must be absolute, fully qualified names of nodes**	(no fragment bits)****  On exit,**	The return result points to a newly allocated name which, if**	parsed by HTParse relative to relatedName, will yield aName.**	The caller is responsible for freeing the resulting name later.***/PUBLIC char * HTRelative (const char * aName, const char * relatedName){    char * result = 0;    const char *p = aName;    const char *q = relatedName;    const char * after_access = NULL;    const char * path = 0;    const char * last_slash = 0;    int slashes = 0;        for(;*p; p++, q++) {	/* Find extent of match */    	if (*p!=*q) break;	if (*p==':') if (!after_access) after_access = p+1;	if (*p=='/') {	    last_slash = p;	    slashes++;	    if (slashes==3) path=p;	}    }        /* q, p point to the first non-matching character or zero */        if (!after_access) {			/* Different access */        StrAllocCopy(result, aName);    } else if (slashes<3){			/* Different nodes */    	StrAllocCopy(result, after_access);    } else {					/* Some path in common */        int levels= 0;        for(; *q && *q!='#' && *q!=';' && *q!='?'; q++) if (*q=='/') levels++;	if ((result = (char  *) HT_MALLOC(3*levels + strlen(last_slash) + 4)) == NULL)	    HT_OUTOFMEM("HTRelative");	*result = '\0';	if (!levels) strcat(result, "./");	for(;levels; levels--)strcat(result, "../");	strcat(result, last_slash+1);	if (!*result) strcat(result, "./");    }    HTTRACE(URI_TRACE, "HTRelative.. `%s' expressed relative to  `%s' is `%s'\n" _ 		aName _ relatedName _ result);#if 0    {	char * absstr = HTParse(result, relatedName, PARSE_ALL);	HTSimplify(&absstr);	HTTRACE(URI_TRACE, "HTRelative.. `%s' made absolute based on `%s' is `%s'\n" _		result _ relatedName _ absstr);	if (strcmp(absstr, aName) != 0) HTTRACE(URI_TRACE, "THEY DIFFER!!!\n");	HT_FREE(absstr);    }#endif    return result;}/*							HTCleanTelnetString() *	Make sure that the given string doesn't contain characters that *	could cause security holes, such as newlines in ftp, gopher, *	news or telnet URLs; more specifically: allows everything between *	ASCII 20-7E, and also A0-FE, inclusive. Also TAB ('\t') allowed! * * On entry, *	str	the string that is *modified* if necessary.  The *		string will be truncated at the first illegal *		character that is encountered. * On exit, *	returns	YES, if the string was modified. *		NO, otherwise. */PUBLIC BOOL HTCleanTelnetString (char * str){    char * cur = str;    if (!str) return NO;    while (*cur) {	int a = TOASCII((unsigned char) *cur);	if (a != 0x9 && (a < 0x20 || (a > 0x7E && a < 0xA0) ||  a > 0xFE)) {	    HTTRACE(URI_TRACE, "Illegal..... character in URL: \"%s\"\n" _ str);	    *cur = 0;	    HTTRACE(URI_TRACE, "Truncated... \"%s\"\n" _ str);	    return YES;	}	cur++;    }    return NO;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲一二三专区| 精品国产一区二区亚洲人成毛片| 国产精品人妖ts系列视频| 国产乱一区二区| 中文字幕精品一区| 97久久超碰国产精品电影| 一区二区三区欧美亚洲| 欧美性videosxxxxx| 日本不卡一二三| 久久免费偷拍视频| 97久久精品人人做人人爽50路| 亚洲色图在线看| 欧美视频一二三区| 精品中文字幕一区二区小辣椒| 2020日本不卡一区二区视频| 大胆欧美人体老妇| 洋洋av久久久久久久一区| 777a∨成人精品桃花网| 国产美女精品在线| 亚洲黄色录像片| 日韩三级高清在线| www.成人网.com| 日本欧美韩国一区三区| 国产精品美日韩| 欧美高清你懂得| 粗大黑人巨茎大战欧美成人| 亚洲mv在线观看| 国产亚洲精品免费| 欧美性大战久久久久久久| 国产一区二区在线观看视频| 亚洲免费在线视频| 久久日韩粉嫩一区二区三区| 在线观看国产91| 国产一区二区三区日韩 | 麻豆精品久久精品色综合| 国产亚洲福利社区一区| 欧美在线短视频| 国产尤物一区二区| 亚洲精品欧美激情| 久久久久国产精品人| 欧美日韩一区二区电影| 成人久久久精品乱码一区二区三区| 亚洲成人综合网站| 中文在线免费一区三区高中清不卡| 欧美日韩国产电影| gogo大胆日本视频一区| 国产伦精品一区二区三区免费迷 | 国产精品午夜春色av| 91麻豆精品国产91久久久久| 国产99久久久久| 久久电影网站中文字幕| 午夜视频在线观看一区二区| 1区2区3区欧美| 国产亚洲精品福利| 欧美成人免费网站| 欧美久久久久久蜜桃| 色婷婷av一区二区| 成人高清免费观看| 国产一区二区三区在线看麻豆| 婷婷久久综合九色综合绿巨人| 中文字幕在线不卡一区| 久久免费电影网| 欧美一区二区在线不卡| 欧美午夜精品一区| 一本久道中文字幕精品亚洲嫩| 国产91精品一区二区| 国产一区在线视频| 国产一区二区中文字幕| 国内精品自线一区二区三区视频| 日韩精品久久久久久| 视频一区视频二区在线观看| 一区二区三区四区在线播放 | 在线不卡免费av| 在线观看亚洲一区| 色综合网色综合| 一本大道久久a久久综合| 91丨九色丨尤物| 91视视频在线观看入口直接观看www | 日韩视频免费直播| 91精品黄色片免费大全| 欧美高清视频不卡网| 91精品在线麻豆| 4hu四虎永久在线影院成人| 日韩一区二区三区电影| 欧美一级片免费看| 精品国产精品一区二区夜夜嗨| 精品国产乱码久久久久久牛牛 | 欧美精品久久99| 91精品国产欧美一区二区18| 欧美一区二区三区精品| 日韩免费观看高清完整版 | 亚洲v中文字幕| 免费黄网站欧美| 国产馆精品极品| av一二三不卡影片| 欧美亚洲综合另类| 日韩三区在线观看| 日本一区二区三区国色天香| 亚洲欧美欧美一区二区三区| 一区av在线播放| 毛片av一区二区| 粉嫩欧美一区二区三区高清影视| 99国产精品国产精品久久| 在线免费观看成人短视频| 欧美一区国产二区| 久久精品一区二区三区不卡| 一区二区三区日韩在线观看| 蜜桃视频在线一区| 成人性生交大片免费看中文网站 | 日本高清免费不卡视频| 911精品产国品一二三产区| 久久久久久久久久看片| 中文字幕中文字幕在线一区| 舔着乳尖日韩一区| 国产成人在线看| 色菇凉天天综合网| 精品少妇一区二区三区视频免付费 | 国产·精品毛片| 欧美亚洲另类激情小说| 日韩美一区二区三区| 国产精品福利在线播放| 日韩国产欧美在线视频| 福利一区在线观看| 欧美二区在线观看| 国产精品午夜在线| 久久成人综合网| 91成人国产精品| 亚洲精品一区二区三区香蕉| 亚洲免费av高清| 国产最新精品免费| 欧美日韩在线精品一区二区三区激情 | 成人免费观看男女羞羞视频| 欧美日韩高清在线播放| 国产精品成人一区二区艾草 | 精品亚洲aⅴ乱码一区二区三区| 91在线观看地址| 久久综合国产精品| 日一区二区三区| 色婷婷精品久久二区二区蜜臂av| 久久综合九色综合欧美98| 肉色丝袜一区二区| 欧美性色aⅴ视频一区日韩精品| 欧美国产一区在线| 国产一区二区在线电影| 欧美一区二区精品| 亚洲成人激情综合网| 91色porny在线视频| 国产欧美精品一区二区色综合朱莉| 蜜臀精品久久久久久蜜臀| 欧美军同video69gay| 一区二区三区中文在线| www.成人在线| 国产视频一区二区在线观看| 蜜臀国产一区二区三区在线播放| 欧美日韩免费在线视频| 亚洲自拍都市欧美小说| 日本道免费精品一区二区三区| 国产精品久线在线观看| 国产成人综合网站| 国产亚洲一区二区三区四区| 狠狠狠色丁香婷婷综合激情 | 欧美人妖巨大在线| 亚洲最色的网站| 色婷婷av一区二区三区软件| 国产精品国产三级国产aⅴ无密码| 国产成人鲁色资源国产91色综| 精品av综合导航| 韩国毛片一区二区三区| 久久综合中文字幕| 国产成人av一区二区| 日本一区二区久久| 不卡一区二区三区四区| 亚洲色图20p| 欧美丝袜丝nylons| 午夜精品久久久久久久99樱桃 | 手机精品视频在线观看| 欧美日韩在线直播| 日本va欧美va精品发布| 精品国产91洋老外米糕| 国内精品久久久久影院一蜜桃| 欧美精品一区二区三区很污很色的 | 日本精品裸体写真集在线观看| 一区二区三区国产精华| 欧美日韩一二区| 麻豆免费精品视频| 国产偷国产偷精品高清尤物| jiyouzz国产精品久久| 亚洲一区二区三区国产| 欧美一区二区三区不卡| 国产美女精品人人做人人爽| 国产精品久久久一本精品| 在线视频国内自拍亚洲视频| 日韩电影免费在线观看网站| 精品电影一区二区| av亚洲产国偷v产偷v自拍| 天天综合网 天天综合色| 精品久久久久久久久久久久久久久 | 老司机精品视频线观看86| 亚洲国产精品激情在线观看| 在线观看成人免费视频|