Lines Matching refs:new_path
285 char *new_path = strdup(cookie_path); in sanitize_cookie_path() local
286 if(!new_path) in sanitize_cookie_path()
290 len = strlen(new_path); in sanitize_cookie_path()
291 if(new_path[0] == '\"') { in sanitize_cookie_path()
292 memmove(new_path, new_path + 1, len); in sanitize_cookie_path()
295 if(len && (new_path[len - 1] == '\"')) { in sanitize_cookie_path()
296 new_path[--len] = 0x0; in sanitize_cookie_path()
300 if(new_path[0] != '/') { in sanitize_cookie_path()
302 strstore(&new_path, "/", 1); in sanitize_cookie_path()
303 return new_path; in sanitize_cookie_path()
307 if(len && new_path[len - 1] == '/') { in sanitize_cookie_path()
308 new_path[len - 1] = 0x0; in sanitize_cookie_path()
311 return new_path; in sanitize_cookie_path()