Changeset 115049 in spip-zone


Ignore:
Timestamp:
Apr 25, 2019, 10:05:44 PM (4 weeks ago)
Author:
maieul@…
Message:

si espace avant le http://, corriger aussi le lien

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/correction_liens_internes/trunk/correction_liens_internes_pipelines.php

    r114796 r115049  
    105105        $id_objet = 0;
    106106        if ($raccourci_spip) {
    107                 preg_match_all("#\[.*->($url_site.*)\]#U", $texte, $match, PREG_SET_ORDER);
     107                preg_match_all("#\[.*->\s?($url_site.*)\]#U", $texte, $match, PREG_SET_ORDER);
    108108        } else {
    109109                preg_match_all("#($url_site.*(\s)?)#", $texte, $match, PREG_SET_ORDER);
Note: See TracChangeset for help on using the changeset viewer.