mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-28 17:23:09 +03:00
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/
|
||||
*
|
||||
@ -55,15 +55,19 @@ void gui_launch_url(const char *url)
|
||||
char *launchurl = NULL;
|
||||
BPTR fptr = 0;
|
||||
|
||||
launchurl = ASPrintf("URL:%s",url);
|
||||
|
||||
if(launchurl && (fptr = Open(launchurl,MODE_OLDFILE)))
|
||||
if(strncasecmp(url,"ABOUT:",6))
|
||||
{
|
||||
Close(fptr);
|
||||
}
|
||||
else if(IOpenURL)
|
||||
URL_OpenA(url,NULL);
|
||||
launchurl = ASPrintf("URL:%s",url);
|
||||
|
||||
if(launchurl && (fptr = Open(launchurl,MODE_OLDFILE)))
|
||||
{
|
||||
Close(fptr);
|
||||
}
|
||||
else if(IOpenURL)
|
||||
URL_OpenA(url,NULL);
|
||||
|
||||
FreeVec(launchurl);
|
||||
}
|
||||
|
||||
FreeVec(launchurl);
|
||||
SetProcWindow(procwin);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user