From fa8558204ff7f8a4ef3aa6a9687ac331b615ddad Mon Sep 17 00:00:00 2001 From: morse Date: Wed, 27 May 1998 08:15:49 +0000 Subject: [PATCH] bug 122126, reviewed by guha --- modules/rdf/src/utils.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/rdf/src/utils.c b/modules/rdf/src/utils.c index ed95c759f714..ff55698cf6ba 100644 --- a/modules/rdf/src/utils.c +++ b/modules/rdf/src/utils.c @@ -534,16 +534,20 @@ RDF_AddCookieResource(char* name, char* path, char* host, char* expires) { remoteStoreAdd(gCookieStore, hostUnit, gCoreVocab->RDF_parent, gNavCenter->RDF_Cookies, RDF_RESOURCE_TYPE, 1); } - sprintf(url, "[%s]%s",path, name); + sprintf(url, "cookie:%s!%s!%s", host, path, name); ru = RDF_GetResource(NULL, url, 1); setResourceType(ru, COOKIE_RT); remoteStoreAdd(gCookieStore, ru, gCoreVocab->RDF_parent, hostUnit, RDF_RESOURCE_TYPE, 1); } +PUBLIC void +NET_DeleteCookie(char* cookieURL); + PRBool CookieUnassert (RDFT r, RDF_Resource u, RDF_Resource s, void* v, RDF_ValueType type) { if (resourceType(u) == COOKIE_RT) { - /* delete the cookie */ + /* delete the cookie */ + NET_DeleteCookie(resourceID(u)); remoteStoreRemove(r, u, s, v, type); return 1; } else return 0;