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

Resolve problem for htmlspecialchars() #29 #30

Closed
wants to merge 1 commit into from
Closed

Resolve problem for htmlspecialchars() #29 #30

wants to merge 1 commit into from

Conversation

francesco-loreti
Copy link

No description provided.

@@ -902,11 +902,11 @@ public function render($name)
public function escape($var)
{
if (in_array($this->_escape, array('htmlspecialchars', 'htmlentities'))) {
return call_user_func($this->_escape, $var, ENT_COMPAT, $this->_encoding);
return call_user_func($this->_escape, "{$var}", ENT_COMPAT, $this->_encoding);
Copy link
Owner

Choose a reason for hiding this comment

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

Why are you passing an array to here instead of a string? Why not ensure your array is converted to a string prior to calling the function?

@Shardj
Copy link
Owner

Shardj commented Dec 4, 2019

I'll reopen once you reply

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

Successfully merging this pull request may close these issues.

2 participants