From aad17c30da7b01c1fc84aa50f4e43d8e383ce66c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 25 Apr 2006 15:15:13 +0000 Subject: [PATCH] make URLs clickable --- ChangeLog | 2 +- changelog.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 67ebc55fe..f51286379 100755 --- a/ChangeLog +++ b/ChangeLog @@ -9,7 +9,7 @@ $Source$ * libraries/common.lib.php: Make cookie login form work with token protection. * libraries/auth/cookie.auth.lib.php: Do not include empty values. - * changelog.php: Generate proper XHTML. + * changelog.php: Generate proper XHTML, make URLs clickable. 2006-04-25 Sebastian Mendel * db_details_qbe.php, db_printview.php, libraries/display_tbl.lib.php, diff --git a/changelog.php b/changelog.php index 0912c2abe..5374ea224 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])@' + => '\\1', + // sourceforge users '/([0-9]{4}-[0-9]{2}-[0-9]{2}) (.+[^ ]) +<(.*)@users.sourceforge.net>/i' => '\\1 \\2',