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

Fix infinite recursion on AbstractAccept #85

Merged
merged 5 commits into from
Aug 2, 2016
Merged

Fix infinite recursion on AbstractAccept #85

merged 5 commits into from
Aug 2, 2016

Conversation

weckx
Copy link
Contributor

@weckx weckx commented Aug 2, 2016

This PR fixes the bug reported in #84 and adds a test for it

@ezimuel ezimuel self-assigned this Aug 2, 2016
@@ -465,4 +465,10 @@ public function testPreventsCRLFAttackViaFromString()
$this->setExpectedException('Zend\Http\Header\Exception\InvalidArgumentException');
$header = Accept::fromString("Accept: application/text\r\n\r\nevilContent");
}

public function testEmptyValue()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest to have a more verbose test name, like testGetEmptyFieldValue.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I've updated the test name

@ezimuel ezimuel merged commit d9ddb81 into zendframework:master Aug 2, 2016
@weckx weckx deleted the fix-84 branch August 2, 2016 10:44
@ezimuel
Copy link
Contributor

ezimuel commented Aug 2, 2016

@weckx Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants