Skip to content

Commit

Permalink
fixing strcasecmp oversight
Browse files Browse the repository at this point in the history
  • Loading branch information
vbhayden authored Jan 30, 2024
1 parent 74f3334 commit 8cf9ea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ private function has_env_bool($variableName) {
$value = getenv($variableName);
$exists = $value != false;

return $exists && strcasecmp($value, "true");
return $exists && (strcasecmp($value, "true") == 0);
}

/**
Expand Down

0 comments on commit 8cf9ea6

Please sign in to comment.