Exit if we're redirecting to feed.php

This commit is contained in:
Sébastien Lucas 2013-03-01 17:48:25 +01:00
parent 6f0bae5ae4
commit 42c3841157

View file

@ -18,6 +18,7 @@
// If we detect that an OPDS reader try to connect try to redirect to feed.php
if (preg_match("/(MantanoReader|FBReader|Stanza|Aldiko|Moon+ Reader)/", $_SERVER['HTTP_USER_AGENT'])) {
header("location: feed.php");
exit ();
}
header ("Content-Type:application/xhtml+xml");