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

Fixed EZP-21222: Forced UTF-8 in htmlentities in XML generation #22

Merged
merged 1 commit into from Jul 24, 2013

Conversation

bdunogier
Copy link
Member

@@ -145,7 +145,9 @@ private function generateContentObjectDOMNode( eZContentObject $contentObject, D
$elementTypeContentChild->appendChild(
$doc->createCDATASection(
htmlentities(
eZRecoDataTypeContent::checkDatatypeString( $classID, $dataMap, $ezRecoMappingArray[$key] )
eZRecoDataTypeContent::checkDatatypeString( $classID, $dataMap, $ezRecoMappingArray[$key] ),
ENT_XML1,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ENT_XML1 has been added in PHP 5.4.0, so we cannot have it here as a requirement

@bdunogier
Copy link
Member Author

Constant fixed, thank you @lolautruche.

@@ -145,7 +145,9 @@ private function generateContentObjectDOMNode( eZContentObject $contentObject, D
$elementTypeContentChild->appendChild(
$doc->createCDATASection(
htmlentities(
eZRecoDataTypeContent::checkDatatypeString( $classID, $dataMap, $ezRecoMappingArray[$key] )
eZRecoDataTypeContent::checkDatatypeString( $classID, $dataMap, $ezRecoMappingArray[$key] ),
ENT_COMPAT,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not using the default value ?

ENT_COMPAT | ENT_HTML401

I know, we're not dealing with HTML4, but still 😄

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, thank you :-)

@lolautruche
Copy link

+1

@bdunogier bdunogier merged commit 52a98b0 into master Jul 24, 2013
@bdunogier
Copy link
Member Author

Merged to master: 52a98b0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants