Fixed a security issue with the encrypter
Merge pull request #6768 from GrahamForks/4.2-patch

[4.2] Fixed A Security Issue With The Encrypter
Merge.