X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=www%2Fplugins%2Frss_article_3_0%2Fgenie%2Frssarticle_copie.php;fp=www%2Fplugins%2Frss_article_3_0%2Fgenie%2Frssarticle_copie.php;h=5d99066149a5437d119b359210cb31cad1b9808d;hb=4f443dce95ff6f8221c189880a70c74ce1c1f238;hp=10d6576bb5033a8e3a839e4b42f8343db5c6e92f;hpb=4a628e9b277d3617535f99d663ca79fa2e891177;p=lhc%2Fweb%2Fwww.git diff --git a/www/plugins/rss_article_3_0/genie/rssarticle_copie.php b/www/plugins/rss_article_3_0/genie/rssarticle_copie.php index 10d6576b..5d990661 100644 --- a/www/plugins/rss_article_3_0/genie/rssarticle_copie.php +++ b/www/plugins/rss_article_3_0/genie/rssarticle_copie.php @@ -5,6 +5,9 @@ * * */ +if (!defined('_ECRIRE_INC_VERSION')) { + return; +} // TODO // - gerer les mots-clés hors enclosure ? @@ -191,7 +194,7 @@ function rssarticle_get_id_auteur($nom) { // // extraire les documents taggues enclosure -// voir http://doc.spip.org/@afficher_enclosures +// voir https://code.spip.net/@afficher_enclosures function extraire_enclosures($tags) { $s = array(); foreach (extraire_balises($tags, 'a') as $tag) { @@ -255,8 +258,9 @@ function html2spip($lapage){ $lapage = str_replace("\r", "\n", $lapage); // SUPPRIME LES TAGS - if (eregi("(.*)", $lapage, $regs)) - $titre = textebrut($regs[1]); + if (preg_match("/(.*)<\/title>/i", $lapage, $regs)) { + $titre = textebrut($regs[1]); + } $lapage = textebrut($lapage); // Suite tableaux @@ -275,4 +279,3 @@ function html2spip($lapage){ return $lapage; } -?> \ No newline at end of file