Dotclear


Ignore:
Timestamp:
01/03/17 14:55:15 (9 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Cope with several copies of a same smiley in content, fixes #2234

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/public/lib.tpl.context.php

    r3462 r3494  
    375375               if (preg_match('|^([^\t]*)[\t]+(.*)$|',$v,$matches)) 
    376376               { 
    377                     $r = '/(\A|[\s]+|>)('.preg_quote($matches[1],'/').')([\s]+|[<]|\Z)/ms'; 
     377                    $r = '/(\G|[\s]+|>)('.preg_quote($matches[1],'/').')([\s]+|[<]|\Z)/ms'; 
    378378                    $s = '$1<img src="'.$url.$matches[2].'" '. 
    379379                    'alt="$2" class="smiley" />$3'; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map