Revision [16658]
This is an old revision of ArchiveLinkFormattingFix made by CjdI1r on 2007-05-31 10:30:38.
- external links are only allowed to well known schemes: http:, https: and ftp:; this fixes all bugs where links have the form javascript:...
- formatter/wakka.php had its own link formatter for some links; this removes another avenue for bugs
This also adds two features I like:
- external links have their own CSS class, so you can style them differently
- external links are followed by a little mark (a small superscripted infinity sign) so you can easily tell which links go off-site.
Enjoy! --MarkLentczner
wakka.php
Change the function Link to
%% function Link($tag, $method = , $text = , $track = 1) {
if (!$text) $text = $tag;
$text = htmlspecialchars($text);
$url = ;
if (preg_match("/^([A-Z][a-zA-Z] ):([^\\s\"<>