Lines Matching refs:new_path
304 char *new_path = strdup(cookie_path); in sanitize_cookie_path() local
305 if(!new_path) in sanitize_cookie_path()
309 len = strlen(new_path); in sanitize_cookie_path()
310 if(new_path[0] == '\"') { in sanitize_cookie_path()
311 memmove((void *)new_path, (const void *)(new_path + 1), len); in sanitize_cookie_path()
314 if(len && (new_path[len - 1] == '\"')) { in sanitize_cookie_path()
315 new_path[len - 1] = 0x0; in sanitize_cookie_path()
320 if(new_path[0] != '/') { in sanitize_cookie_path()
322 free(new_path); in sanitize_cookie_path()
323 new_path = strdup("/"); in sanitize_cookie_path()
324 return new_path; in sanitize_cookie_path()
328 if(len && new_path[len - 1] == '/') { in sanitize_cookie_path()
329 new_path[len - 1] = 0x0; in sanitize_cookie_path()
332 return new_path; in sanitize_cookie_path()