Ignore:
Timestamp:
2011/08/22 15:53:02 (13 years ago)
Author:
shutta
Message:

refs #1454 (モバイル> リンク切れ画像を表示した際にimgタグのゴミが表示される)
IMGタグを抽出する正規表現を修正。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_11-dev/data/class/SC_MobileImage.php

    r21025 r21209  
    4848 
    4949            // HTML中のIMGタグを取得する 
    50             $pattern = '/<img\s+[^<>]*src=[\'"]?([^>"\'\s]+)[\'"]?\s*\/?/i'; 
     50            $pattern = '/<img\s+[^<>]*src=[\'"]?([^>"\'\s]+)[\'"]?[^>]*>/i'; 
    5151            $result = preg_match_all($pattern, $buffer, $images); 
    5252 
Note: See TracChangeset for help on using the changeset viewer.