X-Git-Url: http://git.cyclocoop.org/?p=ptitvelo%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fplugins-dist%2Ftextwheel%2Finc%2Fautoliens.php;h=ce6eb6ee7b94234ec569f70e19a5304003715b6e;hp=84d499f99cbf77276b34ec5b7dc91bf44f05384e;hb=e847eea4a82a7396dd0abf860f9b30d654f38629;hpb=d686c3e22e97dd46ef42bcd0f138c65083f8f232 diff --git a/www/plugins-dist/textwheel/inc/autoliens.php b/www/plugins-dist/textwheel/inc/autoliens.php index 84d499f..ce6eb6e 100644 --- a/www/plugins-dist/textwheel/inc/autoliens.php +++ b/www/plugins-dist/textwheel/inc/autoliens.php @@ -33,8 +33,9 @@ function tw_traiter_autoliens($r) { } else $protocol = 'http'; // valider le nom de domaine if (!preg_match(_EXTRAIRE_DOMAINE, $l)) return $tout; - // supprimer les ponctuations a la fin d'une URL - preg_match('/^(.*?)([,.;?]?)$/', $l, $k); + // les ponctuations a la fin d'une URL n'en font certainement pas partie + // en particulier le "|" quand elles sont dans un tableau a la SPIP + preg_match('/^(.*?)([,.;?|]?)$/', $l, $k); $url = $protocol.'://'.$k[1]; $lien = charger_fonction('lien', 'inc'); // deux fois car inc_lien echappe un coup et restaure ensuite