Skip to content

fix hash comparison#6

Open
philsmd wants to merge 1 commit into
bigluck:masterfrom
philsmd:patch-1
Open

fix hash comparison#6
philsmd wants to merge 1 commit into
bigluck:masterfrom
philsmd:patch-1

Conversation

@philsmd

@philsmd philsmd commented Oct 9, 2017

Copy link
Copy Markdown

You can't compare strings/hashes in PHP with just the equality operator (==), you need to check that the 2 strings/parts are identical (see http://php.net/manual/en/language.operators.comparison.php).
This problem is actually very widespread and some blogs/articles deal with it e.g. (just one randomly picked page that explains this problem) https://www.whitehatsec.com/blog/magic-hashes/

You can't compare strings/hashes in PHP with just the equality operator (==), you need to check that the 2 strings/parts are identical (see http://php.net/manual/en/language.operators.comparison.php).
This problem is actually very widespread and some blogs/articles deal with it e.g. (just one randomly picked page that explains this problem) https://www.whitehatsec.com/blog/magic-hashes/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant