From b045f1d9e79ad9026d471f2069482b5aa725284b Mon Sep 17 00:00:00 2001 From: Lucas Werkmeister Date: Thu, 7 Jun 2018 18:48:39 +0200 Subject: [PATCH] Restore original OpenSearch namespaces MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Though that URL may no longer resolve, the correct XML namespace for OpenSearch remains http://a9.com/-/spec/opensearch/1.1/ – see [1] and [2] for some discussion clarifying this. Similarly, the canonical namespace URL for MozSearch uses HTTP, not HTTPS, as can be seen when visiting it (via either protocol) [3]. This reverts commit 3b86cf03c162298211da2f57333bcc645123a979. [1]: https://github.com/dewitt/opensearch/issues/3 [2]: https://groups.google.com/d/msg/opensearch/8ecuX35-lEs/JR_cs0N6k68J [3]: https://www.mozilla.org/2006/browser/search/ Bug: T196643 Change-Id: I8d14660550a5c67cefc421a334502963bfd6ed3c --- opensearch_desc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opensearch_desc.php b/opensearch_desc.php index b92ff2ecae..b9b21611d0 100644 --- a/opensearch_desc.php +++ b/opensearch_desc.php @@ -46,8 +46,8 @@ $response->header( 'Cache-control: max-age=600' ); print ''; print Xml::openElement( 'OpenSearchDescription', [ - 'xmlns' => 'http://www.opensearch.org/Specifications/OpenSearch/1.1', - 'xmlns:moz' => 'https://www.mozilla.org/2006/browser/search/' ] ); + 'xmlns' => 'http://a9.com/-/spec/opensearch/1.1/', + 'xmlns:moz' => 'http://www.mozilla.org/2006/browser/search/' ] ); /* The spec says the ShortName must be no longer than 16 characters, * but 16 is *realllly* short. In practice, browsers don't appear to care -- 2.20.1