Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Hotfix/encrypt numbers #7083

Closed

Conversation

bacinsky
Copy link
Contributor

PR https://github.com/zendframework/zf2/pull/5436/files#diff-acc52fa0c89428ade03c42a52bd93c19 introduced a BC break bug to the Filter\Encrypt and Filter\Decrypt. Before was allowed to encrypt/decrypt integers numbers, after that PR it's restricted to strings only.

https://github.com/zendframework/zf2/blob/4b496e98fcb2a40165a738459a17fb885474d717/library/Zend/Filter/Encrypt.php#L126
https://github.com/zendframework/zf2/blob/4b496e98fcb2a40165a738459a17fb885474d717/library/Zend/Filter/Decrypt.php#L27

And I can't mention that silently returning a value when that condition isn't met is nasty, debugging that was annoying.

@bacinsky bacinsky mentioned this pull request Dec 29, 2014
@Ocramius
Copy link
Member

@bacinsky thanks for changing the PR!

@Ocramius Ocramius self-assigned this Dec 29, 2014
@Ocramius Ocramius added this to the 2.3.4 milestone Dec 29, 2014
@Ocramius Ocramius closed this in 7325cc0 Dec 31, 2014
@Ocramius
Copy link
Member

Merged, thanks @bacinsky!

master: 7325cc0
develop: 48abf1e

gianarb pushed a commit to zendframework/zend-filter that referenced this pull request May 15, 2015
gianarb pushed a commit to zendframework/zend-filter that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants