Lines Matching refs:new_path
301 char *new_path = strdup(cookie_path); in sanitize_cookie_path() local
302 if(!new_path) in sanitize_cookie_path()
306 len = strlen(new_path); in sanitize_cookie_path()
307 if(new_path[0] == '\"') { in sanitize_cookie_path()
308 memmove((void *)new_path, (const void *)(new_path + 1), len); in sanitize_cookie_path()
311 if(len && (new_path[len - 1] == '\"')) { in sanitize_cookie_path()
312 new_path[len - 1] = 0x0; in sanitize_cookie_path()
317 if(new_path[0] != '/') { in sanitize_cookie_path()
319 free(new_path); in sanitize_cookie_path()
320 new_path = strdup("/"); in sanitize_cookie_path()
321 return new_path; in sanitize_cookie_path()
325 if(len && new_path[len - 1] == '/') { in sanitize_cookie_path()
326 new_path[len - 1] = 0x0; in sanitize_cookie_path()
329 return new_path; in sanitize_cookie_path()