mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-29 23:25:59 +00:00
Fixed: #892 segfaults with newer libwww on linux
This commit is contained in:
parent
95db3cc2f9
commit
b541d58646
1 changed files with 6 additions and 1 deletions
|
@ -2625,7 +2625,7 @@ void CGroupHTML::handle ()
|
||||||
_URL = home();
|
_URL = home();
|
||||||
|
|
||||||
string finalUrl;
|
string finalUrl;
|
||||||
lookupLocalFile (finalUrl, _URL.c_str(), true);
|
bool isLocal = lookupLocalFile (finalUrl, _URL.c_str(), true);
|
||||||
|
|
||||||
// Reset the title
|
// Reset the title
|
||||||
if(_TitlePrefix.empty())
|
if(_TitlePrefix.empty())
|
||||||
|
@ -2664,7 +2664,12 @@ void CGroupHTML::handle ()
|
||||||
C3WSmartPtr uri = HTParse(finalUrl.c_str(), NULL, PARSE_ALL);
|
C3WSmartPtr uri = HTParse(finalUrl.c_str(), NULL, PARSE_ALL);
|
||||||
|
|
||||||
// Create an anchor
|
// Create an anchor
|
||||||
|
#ifdef NL_OS_WINDOWS
|
||||||
if ((_LibWWW->Anchor = HTAnchor_findAddress(uri)) == NULL)
|
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());
|
browseError((string("The page address is malformed : ")+(const char*)uri).c_str());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue