Don't break UTF-8 strings on obfuscate.

This commit is contained in:
Taylor Otwell committed 2013-11-01 16:56:42 -05:00
1 parent c2192c5891
commit 99ed5ffcc9
1 file changed
+2
+2
View File
@@ -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.