Exclude about: as that will never be handled externally and some sites use
about:blank extensively. svn path=/trunk/netsurf/; revision=10129
This commit is contained in:
parent
3921fcf173
commit
f4dd2e38d4
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2008-9 Chris Young <chris@unsatisfactorysoftware.co.uk>
|
* Copyright 2008-10 Chris Young <chris@unsatisfactorysoftware.co.uk>
|
||||||
*
|
*
|
||||||
* This file is part of NetSurf, http://www.netsurf-browser.org/
|
* This file is part of NetSurf, http://www.netsurf-browser.org/
|
||||||
*
|
*
|
||||||
|
@ -55,15 +55,19 @@ void gui_launch_url(const char *url)
|
||||||
char *launchurl = NULL;
|
char *launchurl = NULL;
|
||||||
BPTR fptr = 0;
|
BPTR fptr = 0;
|
||||||
|
|
||||||
launchurl = ASPrintf("URL:%s",url);
|
if(strncasecmp(url,"ABOUT:",6))
|
||||||
|
|
||||||
if(launchurl && (fptr = Open(launchurl,MODE_OLDFILE)))
|
|
||||||
{
|
{
|
||||||
Close(fptr);
|
launchurl = ASPrintf("URL:%s",url);
|
||||||
}
|
|
||||||
else if(IOpenURL)
|
if(launchurl && (fptr = Open(launchurl,MODE_OLDFILE)))
|
||||||
URL_OpenA(url,NULL);
|
{
|
||||||
|
Close(fptr);
|
||||||
|
}
|
||||||
|
else if(IOpenURL)
|
||||||
|
URL_OpenA(url,NULL);
|
||||||
|
|
||||||
|
FreeVec(launchurl);
|
||||||
|
}
|
||||||
|
|
||||||
FreeVec(launchurl);
|
|
||||||
SetProcWindow(procwin);
|
SetProcWindow(procwin);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue