diff options
author | Michal Čihař <michal@cihar.com> | 2006-04-25 19:15:13 +0400 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2006-04-25 19:15:13 +0400 |
commit | aad17c30da7b01c1fc84aa50f4e43d8e383ce66c (patch) | |
tree | 1039582cfb86392cc34646ea75b679982cfac109 /changelog.php | |
parent | adf542fc04bd24de0cc38205dc546c7560d2cde6 (diff) |
make URLs clickable
Diffstat (limited to 'changelog.php')
-rw-r--r-- | changelog.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/changelog.php b/changelog.php index 0912c2abe1..5374ea224a 100644 --- a/changelog.php +++ b/changelog.php @@ -9,6 +9,9 @@ $changelog = htmlspecialchars(file_get_contents('ChangeLog')); $replaces = array( + '@(http://[./a-zA-Z0-9.-]*[/a-zA-Z0-9])@' + => '<a href="\\1">\\1</a>', + // sourceforge users '/([0-9]{4}-[0-9]{2}-[0-9]{2}) (.+[^ ]) +<(.*)@users.sourceforge.net>/i' => '\\1 <a href="https://sourceforge.net/users/\\3/">\\2</a>', |