From b541d5864668eee93fbf4241c8217ab17cbcf5b0 Mon Sep 17 00:00:00 2001 From: vl Date: Mon, 17 May 2010 15:27:43 +0200 Subject: [PATCH] Fixed: #892 segfaults with newer libwww on linux --- code/ryzom/client/src/interface_v3/group_html.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/code/ryzom/client/src/interface_v3/group_html.cpp b/code/ryzom/client/src/interface_v3/group_html.cpp index ba53686f2..006ea1785 100644 --- a/code/ryzom/client/src/interface_v3/group_html.cpp +++ b/code/ryzom/client/src/interface_v3/group_html.cpp @@ -2625,7 +2625,7 @@ void CGroupHTML::handle () _URL = home(); string finalUrl; - lookupLocalFile (finalUrl, _URL.c_str(), true); + bool isLocal = lookupLocalFile (finalUrl, _URL.c_str(), true); // Reset the title if(_TitlePrefix.empty()) @@ -2664,7 +2664,12 @@ void CGroupHTML::handle () C3WSmartPtr uri = HTParse(finalUrl.c_str(), NULL, PARSE_ALL); // Create an anchor +#ifdef NL_OS_WINDOWS if ((_LibWWW->Anchor = HTAnchor_findAddress(uri)) == NULL) +#else + // temporarily disable local URL's until LibWWW can be replaced. + if (isLocal || ((_LibWWW->Anchor = HTAnchor_findAddress(uri)) == NULL)) +#endif { browseError((string("The page address is malformed : ")+(const char*)uri).c_str()); }