Commit 6bf771a9e98b2d2919ac2ab3071cb4e52f92e55f
- Diff rendering mode:
- inline
- side by side
index.php
(1 / 1)
|   | |||
| 168 | 168 | // FIXME: Do not apply this in <pre> and <notextile> blocks. | |
| 169 | 169 | ||
| 170 | 170 | // Linkify | |
| 171 | $text = preg_replace('@([^:])(https?://([-\w\.]+)+(:\d+)?(/([-\w/_\.]*(\?\S+)?)?)?)@', '$1<a href="$2">$2</a>', $text); | ||
| 171 | $text = preg_replace('@([^:])(https?://([-\w\.]+)+(:\d+)?(/([%-\w/_\.]*(\?\S+)?)?)?)@', '$1<a href="$2">$2</a>', $text); | ||
| 172 | 172 | ||
| 173 | 173 | // WikiLinkify | |
| 174 | 174 | $text = preg_replace('@\[([A-Z]\w+)\]@', '<a href="' . $SCRIPT_URL . '/$1">$1</a>', $text); |

