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

Handle invalid code sequences in Html::encode() #3518

Merged

Conversation

DaSourcerer
Copy link
Contributor

As described in this blog post, PHP 5.4 introduced a new flag to htmlspecialchars() allowing invalid code sequences being replaced by � (REPLACEMENT CHARACTER).

Accepting this PR will highten security of Yii 2 apps and bring the framework closer to the recommendations found in the Unicode Security Considerations.

@samdark samdark added this to the 2.0 RC milestone May 20, 2014
@samdark samdark self-assigned this May 20, 2014
samdark added a commit that referenced this pull request May 20, 2014
…lchars-handling

Handle invalid code sequences in Html::encode()
@samdark samdark merged commit 800b18d into yiisoft:master May 20, 2014
@samdark
Copy link
Member

samdark commented May 20, 2014

Very good addition. Thank you.

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

Successfully merging this pull request may close these issues.

2 participants