Skip to content
This repository was archived by the owner on Feb 4, 2026. It is now read-only.

Change scheme for the google maps api call to https and include an api key if one was set#10

Merged
mbabker merged 3 commits intojoomla-framework:masterfrom
matrikular:patch-1
May 13, 2016
Merged

Change scheme for the google maps api call to https and include an api key if one was set#10
mbabker merged 3 commits intojoomla-framework:masterfrom
matrikular:patch-1

Conversation

@matrikular
Copy link
Copy Markdown
Contributor

As requested in #10439 for the joomla-cms repo, this PR aims to add a google api key to the request if one was set and changes the schema / protocol to https instead of http.

{
$url = 'http://maps.googleapis.com/maps/api/geocode/json?sensor=false&address=' . urlencode($address);
$response = $this->http->get($url);
$uri = JUri::getInstance('https://maps.googleapis.com/maps/api/geocode/json');
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This needs to be new Uri('https://maps.googleapis.com/maps/api/geocode/json');

The JUri class doesn't exist at the Framework level

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thank you michael, I already changed it.

@mbabker mbabker merged commit 3f6508c into joomla-framework:master May 13, 2016
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