From e827a2c5a707b52beebbd5fc0636d8cfe54c1662 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Fri, 11 Jan 2013 17:26:26 +0100 Subject: [PATCH] With FBReaderJ 1.6.9 the problem with OPDS search is fixed See https://github.com/geometer/FBReaderJ/issues/70 --- OPDS_renderer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OPDS_renderer.php b/OPDS_renderer.php index 93f939c..5a05e88 100644 --- a/OPDS_renderer.php +++ b/OPDS_renderer.php @@ -120,7 +120,7 @@ class OPDSRenderer self::renderLink ($link); $link = new LinkNavigation ("?" . $_SERVER['QUERY_STRING'], "self"); self::renderLink ($link); - if ($config['cops_generate_invalid_opds_stream'] == 0 || preg_match("/(MantanoReader)/", $_SERVER['HTTP_USER_AGENT'])) { + if ($config['cops_generate_invalid_opds_stream'] == 0 || preg_match("/(MantanoReader|FBReader)/", $_SERVER['HTTP_USER_AGENT'])) { // Good and compliant way of handling search $link = new Link ("feed.php?page=" . self::PAGE_OPENSEARCH, "application/opensearchdescription+xml", "search", "Search here"); }