lib/trac-wiki/parser.rb in trac-wiki-0.0.9 vs lib/trac-wiki/parser.rb in trac-wiki-0.1.0
- old
+ new
@@ -275,14 +275,15 @@
@out << escape_html(whole)
return
end
if no_link?
- @out << escape_html(whole)
- return
+ if uri !~ /^(ftp|https?):/
+ @out << escape_html(whole)
+ return
+ end
end
- make_explicit_link(link)
@out << '<a href="' << escape_html(uri) << '">'
if content
until content.empty?
content = parse_inline_tag(content)
end