On 8/18/06, Steve Bennett stevage@gmail.com wrote:
The most interesting revelation of the above tests, for those who missed it, is that it *is* possible to link to a page named after a URL, but [[http://foo.com]] won't do it (that generates a, what was it, "direct link"). However, [[ http://foo.com]] works, although the page ends up being called "Http://foo.com". It's not completely inconceivable to me that one day we might want to write an article about a URL, like if some postmodern band names an album "http://stupid.com" or something.
True (album names, ugh). Note the following in Parser.php:
# Don't allow internal links to pages containing # PROTO: where PROTO is a valid URL protocol; these # should be external links. if (preg_match('/^(\b(?:' . wfUrlProtocols() . '))/', $m[1])) { $s .= $prefix . '[[' . $line ; continue; }
Any reason that we explicitly ban pages from having titles that look like URLs?