From: Pascal Corpet Date: Fri, 14 Jan 2005 12:44:07 +0000 (+0000) Subject: closes bug 238 : liens et mails cliquables dans les evenements X-Git-Tag: xorg/old~442 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=238c54856e220aece1589b823b560ee2cde328b6;p=platal.git closes bug 238 : liens et mails cliquables dans les evenements git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-314 --- diff --git a/ChangeLog b/ChangeLog index 9b69fd7..3c82e64 100644 --- a/ChangeLog +++ b/ChangeLog @@ -42,6 +42,9 @@ Bug/Wish : * Emails : - #229: Possibility to show our melix address. -Car + * Events : + - #238: Links and Mailto are now active. -Car + * Marketing : - #256: Mail are now correctly sent. -MC diff --git a/htdocs/evenements.php b/htdocs/evenements.php index e92a946..b3c3795 100644 --- a/htdocs/evenements.php +++ b/htdocs/evenements.php @@ -39,6 +39,8 @@ $page->assign('validation_message', $validation_message); $page->assign('action', strtolower($action)); if ($action=="Confirmer") { + $texte = preg_replace( "/((http|ftp)+(s)?:\/\/[^<>\s]+)/i", "\\0", $texte ); + $texte = preg_replace( "/([^,\s]+@[^,\s]+)/i", "\\0", $texte ); require_once("validations.inc.php"); $evtreq = new evtreq($titre, $texte, $promo_min, $promo_max, $peremption, $validation_message, Session::getInt('uid'));