X-Git-Url: http://git.cyclocoop.org/?p=lhc%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fecrire%2Finc%2Flien.php;h=4f5dab37cd2669275590508a27da933f0e4e7a4f;hp=0bd69766dbb07f103598f5b373ad1b655f6b3b7b;hb=122c920eb07e3f665789f8734965b576e6c25515;hpb=226942065cd4f604eb464addf45a065c9e5bc916 diff --git a/www/ecrire/inc/lien.php b/www/ecrire/inc/lien.php index 0bd69766..4f5dab37 100644 --- a/www/ecrire/inc/lien.php +++ b/www/ecrire/inc/lien.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2012 * + * Copyright (c) 2001-2014 * * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * * * * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * @@ -98,7 +98,7 @@ function calculer_url ($ref, $texte='', $pour='url', $connect='', $echappe_typo return $r ? $r : traiter_lien_explicite($ref, $texte, $pour, $connect, $echappe_typo); } -define('_EXTRAIRE_LIEN', ",^\s*(http:?/?/?|mailto:?)\s*$,iS"); +define('_EXTRAIRE_LIEN', ',^\s*(?:' . _PROTOCOLES_STD . '):?/?/?\s*$,iS'); // http://doc.spip.org/@traiter_lien_explicite function traiter_lien_explicite ($ref, $texte='', $pour='url', $connect='', $echappe_typo = true)