Including HTTP_USER_AGENT for 3 more android apps

Including HTTP_USER_AGENT for android apps

FullReader+ https://play.google.com/store/apps/details?id=com.fullreader
Reader/2.3.1(java)

PocketBook reader https://play.google.com/store/apps/details?id=com.obreey.reader
Dalvik/2.1.0

Ebookdroid https://play.google.com/store/apps/details?id=org.ebookdroid
org.ebookdroid 2.3.5

regarding issue https://github.com/seblucas/cops/issues/236
This commit is contained in:
Horus68 2016-01-13 18:44:56 +00:00
parent f9ed7489e1
commit 11603f2e88

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|Reader|Dalvik|org.ebookdroid)/", $_SERVER['HTTP_USER_AGENT'])) {
header("location: feed.php");
exit ();
}