Changeset 11450


Ignore:
Timestamp:
Jun 20, 2011, 9:40:24 PM (13 years ago)
Author:
mistic100
Message:

the regex "ate" the letter before the smiley

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/SmiliesSupport/smiliessupport.inc.php

    r11294 r11450  
    101101      { 
    102102        $filename = get_filename_wo_extension($matches[2]);
    103         $v = '#[^"]'.preg_quote($matches[1],'/').'#';         
    104         $t = '<img src="'.$conf_smiliessupport[0].'/'.$matches[2].'" alt=":'.$filename.':"/>';
     103        $v = '#([^"])'.preg_quote($matches[1],'/').'#';         
     104        $t = '$1<img src="'.$conf_smiliessupport[0].'/'.$matches[2].'" alt=":'.$filename.':"/>';
    105105        $str = preg_replace($v, $t, $str);
    106106      }
Note: See TracChangeset for help on using the changeset viewer.