Skip to content

Commit

Permalink
for string compare, use !== rather than !=
Browse files Browse the repository at this point in the history
  • Loading branch information
nklatt committed Apr 17, 2017
1 parent 98c400e commit 5b1823f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vexim/config/authsite.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
die();
}

if ($_SESSION['username'] != "siteadmin"){
if ($_SESSION['username'] !== 'siteadmin')
{
header ("Location: index.php?login=failed");
die();
}
Expand Down

0 comments on commit 5b1823f

Please sign in to comment.