With FBReaderJ 1.6.9 the problem with OPDS search is fixed

See https://github.com/geometer/FBReaderJ/issues/70
This commit is contained in:
Sébastien Lucas 2013-01-11 17:26:26 +01:00
parent 5d9c54eee6
commit e827a2c5a7

View file

@ -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");
}