Skip to content

Conversation

@weshooper
Copy link
Contributor

Fixes an issue I raised at #1255

Proof of logic at https://3v4l.org/RqrHt

I ended up moving more code than discussed in the issue - initially to avoid $content being undefined when it came to preg_match_all(), but also as it made sense grouping the code that way. Also, initialising $versions outside the check, right at the start ensures it's always defined for the switch code further down.

Fixes an issue I raised at #1255

Proof of logic at https://3v4l.org/RqrHt

I ended up moving more code than discussed in the issue - initially to avoid `$content` being undefined when it came to `preg_match_all()`, but also as it made sense grouping the code that way. Also, initialising `$versions` outside the check, right at the start ensures it's always defined for the `switch` code further down.
@terrafrost terrafrost merged commit d4a9845 into phpseclib:2.0 Mar 27, 2018
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.

2 participants