Skip to content

Commit

Permalink
Fix invalid value of htmlspecialchars argument
Browse files Browse the repository at this point in the history
  • Loading branch information
bancer committed Nov 11, 2018
1 parent d080e1d commit c2fac8f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Core/functions.php
Expand Up @@ -69,6 +69,7 @@ function h($text, $double = true, $charset = null)
'Use the 3rd argument instead.'
);
$charset = $double;
$double = true;
}

return htmlspecialchars($text, ENT_QUOTES | ENT_SUBSTITUTE, $charset ?: $defaultCharset, $double);
Expand Down

0 comments on commit c2fac8f

Please sign in to comment.