Ticket #1920 (closed バグ指摘: 修正済)

Opened 8 years ago

Last modified 7 years ago

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:1 Changed 8 years ago by h_yoshimoto

  • Milestone set to EC-CUBE 2.12.3

comment:2 Changed 8 years ago by kim

  • Milestone changed from EC-CUBE2.12.3 to EC-CUBE2.12.4

comment:3 Changed 8 years ago by Qwert

  • Owner changed from somebody to Qwert
  • Status changed from new to assigned

comment:4 Changed 8 years ago by Qwert

  • Status changed from assigned to closed
  • Resolution set to 修正済

comment:5 Changed 7 years ago by h_yoshimoto

  • Status changed from closed to reopened
  • Resolution 修正済 deleted

ご対応ありがとうございます。
最終確認後にクローズとさせて頂きます。

comment:6 Changed 7 years ago by h_yoshimoto

  • 修正済み set

comment:7 Changed 7 years ago by h_yoshimoto

  • Description modified (diff)

comment:8 Changed 7 years ago by h_yoshimoto

  • Description modified (diff)

comment:9 Changed 7 years ago by h_yoshimoto

  • Status changed from reopened to closed
  • Resolution set to 修正済

ご対応ありがとうございました。
こちらクローズさせていただきます。

Note: See TracTickets for help on using tickets.