← Back to team overview

ubuntu-webapps-bugs team mailing list archive

[Bug 1441281] [NEW] Update looksLikeAUrl() function

 

Public bug reported:

We have a function in `src/app/webbrowser/urlManagement.js` called
`looksLikeAUrl()` that checks if an url is valid.

It works well, but it checks tld length is <5.

TLD could be longer[0], so we should remove that restriction and find a
better strategy to verify tld.

[0]: https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains
#ICANN-era_generic_top-level_domains

** Affects: webbrowser-app
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
WebApps bug tracking, which is subscribed to webbrowser-app.
https://bugs.launchpad.net/bugs/1441281

Title:
  Update looksLikeAUrl() function

Status in Web Browser App:
  New

Bug description:
  We have a function in `src/app/webbrowser/urlManagement.js` called
  `looksLikeAUrl()` that checks if an url is valid.

  It works well, but it checks tld length is <5.

  TLD could be longer[0], so we should remove that restriction and find
  a better strategy to verify tld.

  [0]: https://en.wikipedia.org/wiki/List_of_Internet_top-level_domains
  #ICANN-era_generic_top-level_domains

To manage notifications about this bug go to:
https://bugs.launchpad.net/webbrowser-app/+bug/1441281/+subscriptions


Follow ups

References