diff options
author | Christoph <ecobux@users.noreply.github.com> | 2018-05-05 11:42:01 +0300 |
---|---|---|
committer | Stefan Giehl <stefan@piwik.org> | 2018-05-05 11:42:01 +0300 |
commit | 42ad8ad87729027845fee31b108e34036d66a413 (patch) | |
tree | 21c1641e724b42b18641c8243a50df00be680f17 /plugins/SEO | |
parent | cd74d279c7c8ca08737e706ea38b93e697a77372 (diff) |
Fixing some missing information in SEO Rankings widget (#12821)
* https://www.whois.com/whois/ uses identifier "Registration Date:"
* Using http:// returns "302 Moved" with link to https://
Diffstat (limited to 'plugins/SEO')
-rw-r--r-- | plugins/SEO/Metric/DomainAge.php | 2 | ||||
-rw-r--r-- | plugins/SEO/Metric/Google.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/SEO/Metric/DomainAge.php b/plugins/SEO/Metric/DomainAge.php index 54038a7dae..c11a222011 100644 --- a/plugins/SEO/Metric/DomainAge.php +++ b/plugins/SEO/Metric/DomainAge.php @@ -115,7 +115,7 @@ class DomainAge implements MetricsProvider private function getAgeWhoisCom($domain) { $data = $this->getUrl('https://www.whois.com/whois/' . urlencode($domain)); - preg_match('#(?:Creation Date|Created On|created):\s*([ \ta-z0-9\/\-:\.]+)#si', $data, $p); + preg_match('#(?:Creation Date|Created On|created|Registration Date):\s*([ \ta-z0-9\/\-:\.]+)#si', $data, $p); if (!empty($p[1])) { $value = strtotime(trim($p[1])); if ($value === false) { diff --git a/plugins/SEO/Metric/Google.php b/plugins/SEO/Metric/Google.php index 76a1a43e30..fcd6e6495e 100644 --- a/plugins/SEO/Metric/Google.php +++ b/plugins/SEO/Metric/Google.php @@ -17,7 +17,7 @@ use Psr\Log\LoggerInterface; */ class Google implements MetricsProvider { - const SEARCH_URL = 'http://www.google.com/search?hl=en&q=site%3A'; + const SEARCH_URL = 'https://www.google.com/search?hl=en&q=site%3A'; /** * @var LoggerInterface |