Hide emails in changelog
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Thu, 16 Nov 2006 10:47:45 +0000 (10:47 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Thu, 16 Nov 2006 10:47:45 +0000 (10:47 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1092 839d8a87-29fc-0310-9880-83ba4fa771e5

modules/platal.php

index 176bc2f..1c16f85 100644 (file)
@@ -88,6 +88,7 @@ class PlatalModule extends PLModule
 
         $clog = htmlentities(file_get_contents(dirname(__FILE__).'/../ChangeLog'));
         $clog = preg_replace('!(#[0-9]+(,[0-9]+)*)!e', 'bugize("\1")', $clog);
+        $clog = preg_replace('!([-a-z0-9_.]+)@([-a-z0-9_.]+)!i', '\1 AT \2', $clog);
         $clog = preg_replace('!vim:.*$!', '', $clog);
         $page->assign('ChangeLog', $clog);
     }