Hello,
I'm trying to compare 2 variables, like so (I've made sure the variables match):
[code]if ($arg_hash !~ $sha1) {
...
}[/code]
However in error.log it says:
[code]*1 "$sha1" does not match "a78c3ecd2e349d1f1050fa555842a60b585489d8"[/code]
I've tried swapping the variables over and the same error occurs, so it looks like the variable after the comparison character(s) is considered a string by nginx.
Does anyone know of a way to do this? Or of a third party module which does this?
Thanks very much.