diff options
Diffstat (limited to 'amiga/fetch_mailto.c')
-rwxr-xr-x | amiga/fetch_mailto.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/amiga/fetch_mailto.c b/amiga/fetch_mailto.c index f66a5ee2c..d552ebfa2 100755 --- a/amiga/fetch_mailto.c +++ b/amiga/fetch_mailto.c @@ -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); + launchurl = ASPrintf("URL:%s",url); + + if(launchurl && (fptr = Open(launchurl,MODE_OLDFILE))) + { + Close(fptr); + } + else if(IOpenURL) + URL_OpenA(url,NULL); + + FreeVec(launchurl); } - else if(IOpenURL) - URL_OpenA(url,NULL); - FreeVec(launchurl); SetProcWindow(procwin); } |