Dotclear

Changeset 3752:5b508fcc60c0


Ignore:
Timestamp:
04/14/18 11:23:07 (6 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Allows space(s) as separator in smilies.txt

File:
1 edited

Legend:

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

    r3731 r3752  
    360360        foreach ($def as $v) { 
    361361            $v = trim($v); 
    362             if (preg_match('|^([^\t]*)[\t]+(.*)$|', $v, $matches)) { 
     362            if (preg_match('|^([^\t\s]*)[\t\s]+(.*)$|', $v, $matches)) { 
    363363                $r = '/(\G|[\s]+|>)(' . preg_quote($matches[1], '/') . ')([\s]+|[<]|\Z)/ms'; 
    364364                $s = '$1<img src="' . $url . $matches[2] . '" ' . 
Note: See TracChangeset for help on using the changeset viewer.

Sites map