Fixed security_check() method

Dunno if it' s still maintained, but just discovered this.

Cheers.
Merge pull request #9 from ChristianGaertner/patch-1

Fixed security_check() method