Skip to content

Commit

Permalink
MC-36942: HTML minification strips triple slashes from html string in…
Browse files Browse the repository at this point in the history
… phtml
  • Loading branch information
o-iegorov committed Sep 4, 2020
1 parent 5d8908c commit b308c33
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ function ($match) use (&$heredocs) {
'#(?<!:|\\\\|\'|"|/)//(?!/)(?!\s*\<\!\[)(?!\s*]]\>)[^\n\r]*#',
'',
preg_replace(
'#(?<!:|\'|")//[^\n\r]*(\?\>)#',
'#(?<!:|\'|")//[^\n\r\<\?]*(\?\>)#',
' $1',
preg_replace(
'#(?<!:)//[^\n\r]*(\<\?php)[^\n\r]*(\s\?\>)[^\n\r]*#',
Expand Down

0 comments on commit b308c33

Please sign in to comment.