Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] refs #129 SC_CheckError::HTML_TAG_CHECK() 数字を含むタグを正しく扱えない #225

Merged
merged 1 commit into from
Aug 30, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion data/class/SC_CheckError.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function HTML_TAG_CHECK($value)

// HTMLに含まれているタグを抽出する
$match = array();
preg_match_all('/<\/?([a-z]+)/i', $this->arrParam[$keyname], $match);
preg_match_all('/<\/?([a-z\d]+)/i', $this->arrParam[$keyname], $match);
$arrTagIncludedHtml = $match[1];
// 抽出結果を小文字に変換
foreach ($arrTagIncludedHtml as $key => $matchedTag) {
Expand Down
7 changes: 6 additions & 1 deletion html/install/sql/insert_data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,6 @@ INSERT INTO mtb_allowed_tag (id, name, rank) VALUES (5, 'blink', 5);
INSERT INTO mtb_allowed_tag (id, name, rank) VALUES (6, 'br', 6);
INSERT INTO mtb_allowed_tag (id, name, rank) VALUES (7, 'center', 7);
INSERT INTO mtb_allowed_tag (id, name, rank) VALUES (8, 'font', 8);
INSERT INTO mtb_allowed_tag (id, name, rank) VALUES (9, 'h', 9);
INSERT INTO mtb_allowed_tag (id, name, rank) VALUES (10, 'hr', 10);
INSERT INTO mtb_allowed_tag (id, name, rank) VALUES (11, 'img', 11);
INSERT INTO mtb_allowed_tag (id, name, rank) VALUES (12, 'li', 12);
Expand All @@ -747,6 +746,12 @@ INSERT INTO mtb_allowed_tag (id, name, rank) VALUES (15, 'div', 15);
INSERT INTO mtb_allowed_tag (id, name, rank) VALUES (16, 'i', 16);
INSERT INTO mtb_allowed_tag (id, name, rank) VALUES (17, 'u', 17);
INSERT INTO mtb_allowed_tag (id, name, rank) VALUES (18, 's', 18);
INSERT INTO mtb_allowed_tag (id, name, rank) VALUES (19, 'h1', 19);
INSERT INTO mtb_allowed_tag (id, name, rank) VALUES (20, 'h2', 20);
INSERT INTO mtb_allowed_tag (id, name, rank) VALUES (21, 'h3', 21);
INSERT INTO mtb_allowed_tag (id, name, rank) VALUES (22, 'h4', 22);
INSERT INTO mtb_allowed_tag (id, name, rank) VALUES (23, 'h5', 23);
INSERT INTO mtb_allowed_tag (id, name, rank) VALUES (24, 'h6', 24);

INSERT INTO mtb_authority (id, name, rank) VALUES (0, 'システム管理者', 0);
INSERT INTO mtb_authority (id, name, rank) VALUES (1, '店舗オーナー', 1);
Expand Down