Dotclear


Ignore:
Timestamp:
10/26/12 14:32:01 (13 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Quick and dirty, fixes #1150

File:
1 edited

Legend:

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

    r899 r914  
    355355           
    356356          $pattern = '(?:'.preg_quote($p_site,'/').')?'.preg_quote($p_url,'/'); 
    357           $pattern = sprintf('/<img.+?src="%s(.*?\.(?:jpg|jpeg|gif|png))"[^>]+/msu',$pattern); 
     357          $pattern = sprintf('/<img.+?src="%s(.*?\.(?:jpg|jpeg|gif|png))"[^>]+/msui',$pattern); 
    358358           
    359359          $src = ''; 
     
    436436               } elseif (file_exists($f.'.gif')) { 
    437437                    $res = $base.'.gif'; 
     438               } elseif (file_exists($f.'.JPG')) { 
     439                    $res = $base.'.JPG'; 
     440               } elseif (file_exists($f.'.JPEG')) { 
     441                    $res = $base.'.JPEG'; 
     442               } elseif (file_exists($f.'.PNG')) { 
     443                    $res = $base.'.PNG'; 
     444               } elseif (file_exists($f.'.GIF')) { 
     445                    $res = $base.'.GIF'; 
    438446               } 
    439447          } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map