winebrowser: Pass any given argument that is not a mailto URL to the browser.
This commit is contained in:
parent
2b8abca493
commit
f439f21641
|
@ -28,7 +28,7 @@
|
||||||
* taken from a registry key.
|
* taken from a registry key.
|
||||||
*
|
*
|
||||||
* The argument may be a regular Windows file name, a file URL, an
|
* The argument may be a regular Windows file name, a file URL, an
|
||||||
* http(s) URL or a mailto URL. In the first three cases the argument
|
* URL or a mailto URL. In the first three cases the argument
|
||||||
* will be fed to a web browser. In the last case the argument is fed
|
* will be fed to a web browser. In the last case the argument is fed
|
||||||
* to a mail client. A mailto URL is composed as follows:
|
* to a mail client. A mailto URL is composed as follows:
|
||||||
*
|
*
|
||||||
|
@ -209,12 +209,9 @@ int main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!strncasecmp( url, "http:", 5 ) || !strncasecmp( url, "https:", 6 ))
|
|
||||||
return open_http_url( url );
|
|
||||||
|
|
||||||
if (!strncasecmp( url, "mailto:", 7 ))
|
if (!strncasecmp( url, "mailto:", 7 ))
|
||||||
return open_mailto_url( url );
|
return open_mailto_url( url );
|
||||||
|
|
||||||
fprintf( stderr, "winebrowser: cannot handle this type of URL: %s\n", url );
|
/* let the browser decide how to handle the given url */
|
||||||
return 1;
|
return open_http_url( url );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue