Ticket #1920 (closed バグ指摘: 修正済)
SC_CheckError、HTML_TAG_CHECK()内のpreg_match_allにてタグの抽出がうまくいかない
Reported by: | sakurasaku44 | Owned by: | Qwert |
---|---|---|---|
Priority: | 中 | Milestone: | EC-CUBE2.13.0 |
Component: | フロント | Version: | 2.12.1 |
Keywords: | Cc: | ||
修正済み: | yes |
Description (last modified by h_yoshimoto) (diff)
data/class/SC_CheckError.php 61行目付近
preg_match_all('/<\/?([a-z]+)/i', $this->arrParam[$value[1]], $arrTagIncludedHtml = array());
とありますが、$arrTagIncludedHtmlがうまく取れてきません。 「$arrTagIncludedHtml = array()」この初期化がまずそうです。
$arrTagIncludedHtml = array(); preg_match_all('/<\/?([a-z]+)/i', $this->arrParam[$value[1]], $arrTagIncludedHtml);
とすると動作します。
--検証環境-- EC-CUBE:2.12.1 サーバーOS:Linux DBサーバー:PostgreSQL 8.4.8 WEBサーバー :Apache/2.0.64 (Red Hat) PHP:5.2.17
対応チケット
r22475
Change History
comment:3 Changed 10 years ago by Qwert
- Owner changed from somebody to Qwert
- Status changed from new to assigned
comment:4 Changed 10 years ago by Qwert
- Status changed from assigned to closed
- Resolution set to 修正済
Note: See
TracTickets for help on using
tickets.