Home » Incidencias » 73
https links not working?
submitted by sudoman, 15:43, 29 Agosto 2011
ARGUMENTO: other
ESTADO: closed
PRIORIDAD: medium
Descripción:

It looks like https:// links don't work with the markup language used in the message boxes here on h-node. Example:

broken link

working non-https link

Mensajes:
tonicucoz:

ok it should now correctly detect also https URLs.

Anyway this is the regular expression used to detect URL, it should be improved (there are other URLs that are not recognized here and there)

/^http(s)?\:\/\/(www\.)?[a-zA-Z0-9\-\_]+(\.[a-zA-Z0-9\-\_]+)?\.(com|net|it|info|org|eu|uk|ca|us|cl)((\/[a-zA-Z0-9\_\-\+]+)*(\/([a-zA-Z0-9\_\-\.\+]+\.(php|html|htm|asp|aspx|jsp|cgi))?)?)?(\?([a-zA-Z0-9\_\-\+\s]+\=[a-zA-Z0-9\_\-\s\+\&]+)+)?(#[a-zA-Z0-9\_\-\+\s]+)?([\s]*)?$/

We should also add all the top level domains

submitted by tonicucoz, 01:36, 30 Agosto 2011
Ark74:
I've found two new cases where the url detection is missing. The two at the bottom seems to have the same issue.
submitted by Ark74, 14:40, 17 Diciembre 2011
tonicucoz:
ok thanks I will try to solve them as soon as possible
submitted by tonicucoz, 06:00, 22 Diciembre 2011
trisqueldotim:
On h-node/ issues ??
Not sure, but seems to be OK atmo. http://www.h-node.com/meet/messages/en/trisqueldotim/1 .......chcking.
submitted by trisqueldotim, 06:45, 23 Enero 2012
Ark74:

Trisquel.info links are disabled.

Trisquel
submitted by Ark74, 21:06, 24 Marzo 2012
tonicucoz:
Ok solved, I've put an error during the last modification to the regular expression used to recognize URLs
submitted by tonicucoz, 02:15, 25 Marzo 2012
Ark74:
Thanks, working ok! ;)
submitted by Ark74, 13:10, 26 Marzo 2012
tonicucoz:

about the following URL:

http://validator.w3.org/feed/check.cgi?url=http%3A%2F%2Fwww.h-node.com%2Frss%2Fmodifications%2Fen

I would prefer not to accept URLs that have a new HTTP request inside them

submitted by tonicucoz, 09:13, 5 Abril 2012
Ark74:
I have found some url that are not recognized by the mark up language.
  1. [a]https://launchpad.net/~dns/+archive/misc[/a]
  2. [a]https://launchpad.net/~dns/+archive/misc/+packages?field.name_filter=h-client&field.status_filter=published&field.series_filter=|h-client ppa[/a]
But manage to make it work with a url generator (http://www.ur1.ca/), maybe not an elegant solution but it works :P
  1. http://www.ur1.ca/e6qn8
  2. h-client ppa
submitted by Ark74, 20:02, 4 Junio 2013

Write below your motivation

h-node.org is a hardware database project. It runs the h-source PHP software, commit cdeda15, available under the GNU General Public (GPLv3) License.
JavaScript license information