Changeset 914:c85c68561fac for inc/public
- Timestamp:
- 10/26/12 14:32:01 (13 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/public/lib.tpl.context.php
r899 r914 355 355 356 356 $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); 358 358 359 359 $src = ''; … … 436 436 } elseif (file_exists($f.'.gif')) { 437 437 $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'; 438 446 } 439 447 }
Note: See TracChangeset
for help on using the changeset viewer.