Merge pull request #243 from horus68/patch-2
Including HTTP_USER_AGENT for ebookdroid android app
这个提交存在于:
当前提交
6ad4d34c48
共有 1 个文件被更改,包括 1 次插入 和 1 次删除
|
|
@ -20,7 +20,7 @@
|
||||||
require_once ("resources/doT-php/doT.php");
|
require_once ("resources/doT-php/doT.php");
|
||||||
|
|
||||||
// If we detect that an OPDS reader try to connect try to redirect to feed.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");
|
header("location: feed.php");
|
||||||
exit ();
|
exit ();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
正在加载…
添加表格
添加链接
在新工单中引用