[SPIP] v3.2.1-->v3.2.2
[lhc/web/www.git] / www / ecrire / inc / filtres.php
index 11acfdd..2d5594b 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2017                                                *
+ *  Copyright (c) 2001-2019                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
@@ -1010,7 +1010,7 @@ function textebrut($texte) {
  **/
 function liens_ouvrants($texte) {
        if (preg_match_all(",(<a\s+[^>]*https?://[^>]*class=[\"']spip_(out|url)\b[^>]+>),imsS",
-               $texte, $liens, PREG_SET_ORDER)) {
+               $texte, $liens, PREG_PATTERN_ORDER)) {
                foreach ($liens[0] as $a) {
                        $rel = 'noopener noreferrer ' . extraire_attribut($a, 'rel');
                        $ablank = inserer_attribut($a, 'rel', $rel);
@@ -2252,7 +2252,7 @@ function afficher_enclosures($tags) {
  * @param string $rels Attribut `rel` à capturer (ou plusieurs séparés par des virgules)
  * @return string Liens trouvés
  **/
-function afficher_tags($tags, $rels = 'tag, directory') {
+function afficher_tags($tags, $rels = 'tag,directory') {
        $s = array();
        foreach (extraire_balises($tags, 'a') as $tag) {
                $rel = extraire_attribut($tag, 'rel');