Permalink
Browse files

Allow '%' in links.

  • Loading branch information...
1 parent a85a44d commit 6bf771a9e98b2d2919ac2ab3071cb4e52f92e55f @remko committed Nov 2, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 index.php
View
@@ -168,7 +168,7 @@ function wikify($text) {
// FIXME: Do not apply this in <pre> and <notextile> blocks.
// Linkify
- $text = preg_replace('@([^:])(https?://([-\w\.]+)+(:\d+)?(/([-\w/_\.]*(\?\S+)?)?)?)@', '$1<a href="$2">$2</a>', $text);
+ $text = preg_replace('@([^:])(https?://([-\w\.]+)+(:\d+)?(/([%-\w/_\.]*(\?\S+)?)?)?)@', '$1<a href="$2">$2</a>', $text);
// WikiLinkify
$text = preg_replace('@\[([A-Z]\w+)\]@', '<a href="' . $SCRIPT_URL . '/$1">$1</a>', $text);

0 comments on commit 6bf771a

Please sign in to comment.