Projet

Général

Profil

Révision f2fc85df

Ajouté par Assos Assos il y a presque 7 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/media/modules/media_wysiwyg/includes/media_wysiwyg.filter.inc
455 455
  // between function calls. Since media_process_form is multiple times
456 456
  // with same form, this function is also called multiple times.
457 457
  static $tagmap = array();
458
  preg_match_all("/\[\[.*?\]\]/s", $text, $matches, PREG_SET_ORDER);
458
  preg_match_all("/\[\[(?!nid:).*?\]\]/s", $text, $matches, PREG_SET_ORDER);
459 459
  foreach ($matches as $match) {
460 460
    // We see if tagContent is already in $tagMap, if not we add it
461 461
    // to $tagmap.  If we return an empty array, we break embeddings of the same

Formats disponibles : Unified diff