Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Browser::Cookies: reading of cookies #64

Merged
merged 1 commit into from Oct 16, 2016
Merged

Conversation

tongueroo
Copy link
Contributor

@tongueroo tongueroo commented Oct 16, 2016

So it looks like the .scan regexp will result in an array of array structure:

>> matches = "a=1;b=2;c=3".scan(/b=([^;]*)/)
=> [["2"]]
>> matches.flatten
=> ["2"]
>> 

This fix flattens that structure and runs decode_uri_component on each value

@meh meh merged commit 2c01799 into opal:master Oct 16, 2016
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.

None yet

2 participants