Lines Matching full:clone
56 char *clone; in Curl_dedotdotify() local
68 clone = strdup(input); in Curl_dedotdotify()
69 if(!clone) { in Curl_dedotdotify()
73 orgclone = clone; in Curl_dedotdotify()
76 if(!*clone) { in Curl_dedotdotify()
79 return clone; in Curl_dedotdotify()
87 queryp = strchr(clone, '?'); in Curl_dedotdotify()
96 if(!strncmp("./", clone, 2)) { in Curl_dedotdotify()
97 clone += 2; in Curl_dedotdotify()
100 else if(!strncmp("../", clone, 3)) { in Curl_dedotdotify()
101 clone += 3; in Curl_dedotdotify()
108 else if(!strncmp("/./", clone, 3)) { in Curl_dedotdotify()
109 clone += 2; in Curl_dedotdotify()
112 else if(!strcmp("/.", clone)) { in Curl_dedotdotify()
113 clone[1]='/'; in Curl_dedotdotify()
114 clone++; in Curl_dedotdotify()
123 else if(!strncmp("/../", clone, 4)) { in Curl_dedotdotify()
124 clone += 3; in Curl_dedotdotify()
134 else if(!strcmp("/..", clone)) { in Curl_dedotdotify()
135 clone[2]='/'; in Curl_dedotdotify()
136 clone += 2; in Curl_dedotdotify()
150 else if(!strcmp(".", clone) || !strcmp("..", clone)) { in Curl_dedotdotify()
151 *clone = 0; in Curl_dedotdotify()
162 *outptr++ = *clone++; in Curl_dedotdotify()
164 } while(*clone && (*clone != '/')); in Curl_dedotdotify()
168 } while(*clone); in Curl_dedotdotify()
172 /* There was a query part, append that to the output. The 'clone' string in Curl_dedotdotify()