From e1d9a0bf740348a4f56a5f7b8e7cb82101078347 Mon Sep 17 00:00:00 2001 From: "mscott%netscape.com" Date: Wed, 10 Jan 2001 03:37:42 +0000 Subject: [PATCH] Bug #54373 --> make relative links work in the message pane by enabling the ability to resolve URLs. sr=bienvenu --- mailnews/base/util/nsMsgMailNewsUrl.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/mailnews/base/util/nsMsgMailNewsUrl.cpp b/mailnews/base/util/nsMsgMailNewsUrl.cpp index 3cece4c86f22..01c7299c2ce8 100644 --- a/mailnews/base/util/nsMsgMailNewsUrl.cpp +++ b/mailnews/base/util/nsMsgMailNewsUrl.cpp @@ -492,14 +492,7 @@ NS_IMETHODIMP nsMsgMailNewsUrl::Clone(nsIURI **_retval) NS_IMETHODIMP nsMsgMailNewsUrl::Resolve(const char *relativePath, char **result) { - // mailnews urls aren't like http or file urls... - // we don't have relative urls you can resolve against other urls. - // in fact, trying to do so leads to very bad things!! so instead - // of trying to resolve the url, return the input string as a dummy - // place holder. I tried returning just an error code but too many - // callers always assume they get back a url =( - *result = nsCRT::strdup(relativePath); - return NS_OK; + return m_baseURL->Resolve(relativePath, result); } NS_IMETHODIMP nsMsgMailNewsUrl::GetDirectory(char * *aDirectory)