Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

GoogleMaps: view and viewstreet mode support #241

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

Merged
oscarotero merged 2 commits into php-embed:master from denisaug:master
Aug 1, 2017

Conversation

@denisaug
Copy link

@denisaug denisaug commented Jul 27, 2017

GoogleMaps: view and viewstreet mode support
CurlDispatcher: fix decode issue

CurlDispatcher: fix decode issue
Copy link
Author

denisaug commented Jul 27, 2017
edited
Loading

There are test failures, but I also receive failures on my local without any changes to master.
Is it ok?

Copy link
Collaborator

There are test failures, but I also receive failures on my local without any changes to master.
Is it ok?

Saddly, yes. Because this library is tested with real http request, it's common to have failures because the sites are continually changing. But I guess this is the best way to, precisally, detect and adapt the library to these changes.

* https://www.google.com/maps/@70.8853928,-40.8414069,4z
* */
// url could be encoded at this point, so decode it
$connection = curl_init(urldecode((string) $url));
Copy link
Collaborator

@oscarotero oscarotero Jul 27, 2017

Choose a reason for hiding this comment

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

This change cause other errors, so it's better to fix this issue inside the Url class.
The path is encoded here: https://github.com/oscarotero/Embed/blob/master/src/Http/Url.php#L314
And for a similar issue, I've created this function: https://github.com/oscarotero/Embed/blob/master/src/Http/Url.php#L664 that restore the escaped double colon. So we can consider to unescape also the @ and , characters. This function is applied only to the filename path, but I think it can be applied to the full path.

}
}

/**
Copy link
Collaborator

@oscarotero oscarotero Jul 27, 2017

Choose a reason for hiding this comment

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

This function should be private, and the phpdoc explains what does it do.

Copy link
Author

Seems working! Hope I undestand your idea correctly )

@oscarotero oscarotero merged commit 6e681f5 into php-embed:master Aug 1, 2017
Copy link
Collaborator

Thanks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@oscarotero oscarotero oscarotero requested changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /