Merge pull request #226 from mike-ferenduros/master
Include Chunky in OPDS reader agents
This commit is contained in:
commit
30f7a487a8
|
@ -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)/", $_SERVER['HTTP_USER_AGENT'])) {
|
if (preg_match("/(MantanoReader|FBReader|Stanza|Marvin|Aldiko|Moon+ Reader|Chunky)/", $_SERVER['HTTP_USER_AGENT'])) {
|
||||||
header("location: feed.php");
|
header("location: feed.php");
|
||||||
exit ();
|
exit ();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue