diff options
author | Lukas Winkler <github@lw1.at> | 2018-10-10 22:10:24 +0300 |
---|---|---|
committer | Thomas Steur <tsteur@users.noreply.github.com> | 2018-10-10 22:10:24 +0300 |
commit | 4fbead1a302205aa6472116cf56ed9194b9cdebe (patch) | |
tree | c4fc23b5cd6c90bd4d85d0b6b4af6fdbeee236bd /plugins/SEO | |
parent | c2085ae81d704ad07c91bf2f5b9eaf3dfce90ef2 (diff) |
fix SEO bing count (#13576)
Diffstat (limited to 'plugins/SEO')
-rw-r--r-- | plugins/SEO/Metric/Bing.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/SEO/Metric/Bing.php b/plugins/SEO/Metric/Bing.php index e345d19cce..0c2892fb93 100644 --- a/plugins/SEO/Metric/Bing.php +++ b/plugins/SEO/Metric/Bing.php @@ -35,6 +35,7 @@ class Bing implements MetricsProvider try { $response = str_replace(' ', ' ', Http::sendHttpRequest($url, $timeout = 10, @$_SERVER['HTTP_USER_AGENT'])); + $response = str_replace(' ', '', $response); // number uses nbsp as thousand seperator if (preg_match('#([0-9,\.]+) results#i', $response, $p)) { $pageCount = NumberFormatter::getInstance()->formatNumber((int)str_replace(array(',', '.'), '', $p[1])); |