diff --git a/src/utils/utils.php b/src/utils/utils.php index 9f454017..0bb1b4f8 100644 --- a/src/utils/utils.php +++ b/src/utils/utils.php @@ -1016,7 +1016,7 @@ function phutil_loggable_string($string) { $result .= $c_map[$c]; } else { $o = ord($c); - if ($o < 0x20 || $o == 0x7F) { + if ($o < 0x20 || $o >= 0x7F) { $result .= '\\x'.sprintf('%02X', $o); } else { $result .= $c;