Changeset 1447 in spip-zone


Ignore:
Timestamp:
Dec 16, 2005, 9:10:36 PM (14 years ago)
Author:
cedric.morin@…
Message:

detection des fins de requetes par {;[\s*?]([A-Z]*)\s}s

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _contribs_/_hebergement_/multispip1/creerSite/fonctions_creer.php

    r1445 r1447  
    106106        $contenuDump = $listeDump;      */
    107107
     108        $contenuDump=str_replace(CHR(10),"\n",$contenuDump);
     109        $contenuDump=str_replace(CHR(13),"\n",$contenuDump);
    108110        $contenuDump=preg_replace("{^#(.*?)\n}ism","#SEPARATEUR",$contenuDump);
    109         $contenuDump=preg_replace("{;[\s*]\n}i",";\n#SEPARATEUR\n",$contenuDump);
     111        $contenuDump=preg_replace("{;[\s*?]\n}s",";\n#SEPARATEUR\n",$contenuDump);
     112        $contenuDump=preg_replace("{;[\s*?]([A-Z]*)\s}s",";\n#SEPARATEUR\n\\1 ",$contenuDump);
    110113
    111114        $contenuDump=str_replace(CHR(10)," ",$contenuDump);
Note: See TracChangeset for help on using the changeset viewer.