Don't break UTF-8 strings on obfuscate.
This commit is contained in:
1 parent
c2192c5891
commit
99ed5ffcc9
1 file changed
+2
@@ -368,6 +368,8 @@ class HtmlBuilder {
|
|||||||
|
|
||||||
foreach (str_split($value) as $letter)
|
foreach (str_split($value) as $letter)
|
||||||
{
|
{
|
||||||
|
if (ord($letter) > 128) return $letter;
|
||||||
|
|
||||||
// To properly obfuscate the value, we will randomly convert each letter to
|
// To properly obfuscate the value, we will randomly convert each letter to
|
||||||
// its entity or hexadecimal representation, keeping a bot from sniffing
|
// its entity or hexadecimal representation, keeping a bot from sniffing
|
||||||
// the randomly obfuscated letters out of the string on the responses.
|
// the randomly obfuscated letters out of the string on the responses.
|
||||||
|
|||||||
Reference in new issue
Block a user