Skip to content

Commit

Permalink
Merge pull request #309 from horus68/patch-3
Browse files Browse the repository at this point in the history
Android user agent for OPDS reader update
  • Loading branch information
seblucas authored Dec 14, 2016
2 parents 2cc4d60 + c2fafe9 commit bb97fd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
require_once dirname(__FILE__) . '/base.php';

// If we detect that an OPDS reader try to connect try to redirect to feed.php
if (preg_match('/(MantanoReader|FBReader|Stanza|Marvin|Aldiko|Moon\+ Reader|Chunky|AlReader|org\.ebookdroid)/', $_SERVER['HTTP_USER_AGENT'])) {
if (preg_match('/(MantanoReader|FBReader|Stanza|Marvin|Aldiko|Moon\+ Reader|Chunky|AlReader|EBookDroid|BookReader|CoolReader|PageTurner|books\.ebook\.pdf\.reader|com\.hiwapps\.ebookreader|OpenBook)/', $_SERVER['HTTP_USER_AGENT'])) {
header('location: feed.php');
exit();
}
Expand Down

0 comments on commit bb97fd5

Please sign in to comment.