Skip to content

Commit

Permalink
Merge pull request #24 from chihiro-adachi/1.0.1
Browse files Browse the repository at this point in the history
html_entity_decodeを使っている箇所を修正
  • Loading branch information
matsuoshi committed Jun 15, 2021
2 parents 3e241bf + 56918a3 commit 0179ef7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Event/EventLegacy.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,13 @@ public function onRenderProductListBefore(FilterResponseEvent $event)

// 挿入するNodeを生成
$template = $dom->createDocumentFragment();
$template->appendXML(htmlspecialchars($snipet));
$template->appendXML($snipet);
$node = $dom->importNode($template, true);

// 基準となるElementの直後にNodeを挿入し、Responsを書き換え
$navElement->parentNode->insertBefore($node, $navElement->nextSibling);
$newHtml = html_entity_decode($dom->saveHTML(), ENT_NOQUOTES, 'UTF-8');
$response->setContent($newHtml);
$crawler = new Crawler($dom);
$response->setContent($crawler->html());
}
$event->setResponse($response);
log_info('CategoryContent eccube.event.render.product_list.before end');
Expand Down
2 changes: 1 addition & 1 deletion config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: CategoryContent
code: CategoryContent
version: 1.0.0
version: 1.0.1
service:
- CategoryContentServiceProvider
orm.path:
Expand Down

0 comments on commit 0179ef7

Please sign in to comment.