Skip to content
Permalink
Browse files Browse the repository at this point in the history
Adds a check for valid http link when opening a browser.
  • Loading branch information
damencho committed Sep 14, 2022
1 parent 08fd0a8 commit 8aa7be5
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -140,6 +140,11 @@ private String getLinuxBrowser()
*/
public void openURL(final String url)
{
if (url == null || !url.startsWith("http"))
{
logger.warn("Not a valid URL to open:" + url);
return;
}
Thread launchBrowserThread
= new Thread(getClass().getName())
{
Expand Down

0 comments on commit 8aa7be5

Please sign in to comment.