[geeklog-hg] geeklog: Fixed an error when trying to submit a sitemap to searc...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Thu Jul 16 08:31:41 EDT 2015
changeset 9615:cf7f65a3ee01
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/cf7f65a3ee01
user: Kenji ITO <mystralkk at gmail.com>
date: Thu Jul 16 21:31:17 2015 +0900
description:
Fixed an error when trying to submit a sitemap to search engines (bug #0001573)
diffstat:
plugins/xmlsitemap/xmlsitemap.class.php | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (30 lines):
diff -r 51c27818e8ab -r cf7f65a3ee01 plugins/xmlsitemap/xmlsitemap.class.php
--- a/plugins/xmlsitemap/xmlsitemap.class.php Thu Jul 16 21:16:57 2015 +0900
+++ b/plugins/xmlsitemap/xmlsitemap.class.php Thu Jul 16 21:31:17 2015 +0900
@@ -589,7 +589,9 @@
}
$success = 0;
- $sitemap = $_CONF['site_url'] . '/' . $sitemap;
+ $sitemapUrl = $_CONF['site_url'] . '/' . basename($sitemap);
+ $sitemapUrl = urlencode($sitemapUrl);
+
require_once 'HTTP/Request.php';
foreach ($destinations as $dest) {
@@ -603,13 +605,11 @@
switch ($dest) {
case 'google':
- $url = 'http://www.google.com/webmasters/tools/ping?sitemap='
- . urlencode($sitemap);
+ $url = 'http://www.google.com/webmasters/tools/ping?sitemap=' . $sitemapUrl;
break;
case 'bing':
- $url = 'http://www.bing.com/ping?sitemap='
- . urlencode($sitemap);
+ $url = 'http://www.bing.com/ping?sitemap=' . $sitemapUrl;
break;
default:
More information about the geeklog-cvs
mailing list