Skip to content

Commit

Permalink
see cl
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Kunitzsch committed Mar 4, 2019
1 parent e1ac9e8 commit df56cc5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
@@ -1,6 +1,11 @@
# Changelog
All notable changes to this project will be documented in this file.

## [1.0.3] - 2019-03-04

#### Fixed
- skip esi tag from replacement in production mode

## [1.0.2] - 2018-12-18

#### Fixed
Expand Down
8 changes: 8 additions & 0 deletions src/EventListener/HookListener.php
Expand Up @@ -73,6 +73,14 @@ function ($matches) {

$buffer = preg_replace('#<body[^<]*>(?<BCONTENT>.*)<\/body>#s', $strTag.$strBody.'</body>', $buffer);

$buffer = preg_replace_callback(
'/####esi:open####(.*)####esi:close####/',
function ($matches) {
return '<esi:'.str_replace('#~~~#', '"', StringUtil::decodeEntities($matches[1])).'/>';
},
$buffer
);

return $buffer;
}
}

0 comments on commit df56cc5

Please sign in to comment.