Skip to content

Commit

Permalink
seperate $c===null from the ord($c) test to make sure ord() does not …
Browse files Browse the repository at this point in the history
…get null, should (might) fix #416 ?
  • Loading branch information
futtta committed Apr 9, 2024
1 parent c24b41f commit 83852ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion classes/external/php/jsmin.php
Expand Up @@ -335,7 +335,9 @@ protected function get()
return $c;
}
}
if ($c === null || ord($c) >= self::ORD_SPACE || $c === "\n") {
if ($c === null) {
return $c;
} else if (ord($c) >= self::ORD_SPACE || $c === "\n") {
return $c;
}
if ($c === "\r") {
Expand Down

0 comments on commit 83852ba

Please sign in to comment.