Merge pull request #243 from horus68/patch-2

Including HTTP_USER_AGENT for ebookdroid android app
This commit is contained in:
Sébastien Lucas 2016-01-15 14:15:32 +01:00
commit 6ad4d34c48

View file

@ -20,7 +20,7 @@
require_once ("resources/doT-php/doT.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)/", $_SERVER['HTTP_USER_AGENT'])) {
if (preg_match("/(MantanoReader|FBReader|Stanza|Marvin|Aldiko|Moon+ Reader|Chunky|AlReader|org\.ebookdroid)/", $_SERVER['HTTP_USER_AGENT'])) {
header("location: feed.php");
exit ();
}