Bug #54373 --> make relative links work in the message pane by enabling the ability

to resolve URLs.
sr=bienvenu
This commit is contained in:
mscott%netscape.com 2001-01-10 03:37:42 +00:00
parent 3b3fbeea7a
commit e1d9a0bf74

View File

@ -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)