comments: Deal with users entering unqualified or partial urls.
authorJoey Hess <joey@gnu.kitenet.net>
Fri, 26 Dec 2008 19:07:19 +0000 (14:07 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Fri, 26 Dec 2008 19:07:19 +0000 (14:07 -0500)
commit9db06329c98e1a390bbb6323de02dc7e2f45f1f8
tree9be1a22b818a00a94bce43959e6b7a14ef898598
parent0d406010ff8ffb8d891318bbaf6b6de1e2cb2578
comments: Deal with users entering unqualified or partial urls.

People seem to be able to expect to enter www.foo.com and get away with it.
The resulting my.wiki/www.foo.com link was not ideal.

To fix it, use URI::Heuristic to expand such things into a real url. It
even looks up hostnames in the DNS if necessary.
IkiWiki/Plugin/comments.pm
debian/changelog