aboutsummaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authorWojciech Polak <polak@gnu.org>2010-04-24 18:57:02 +0200
committerWojciech Polak <polak@gnu.org>2010-04-24 18:57:02 +0200
commitbe8dffced57331dd6a6824a47b54c9222bacd76c (patch)
tree2e8794383565a60a503fc273be9b500ef8043c1e /frontend
parentc57c769f0969717ba5da6551ddf3947b27b84dd7 (diff)
downloadcheetah-be8dffced57331dd6a6824a47b54c9222bacd76c.tar.gz
cheetah-be8dffced57331dd6a6824a47b54c9222bacd76c.tar.bz2
Another change in feed detection.
Diffstat (limited to 'frontend')
-rw-r--r--frontend/lib/feed.class.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/frontend/lib/feed.class.php b/frontend/lib/feed.class.php
index 4d3db53..c36a008 100644
--- a/frontend/lib/feed.class.php
+++ b/frontend/lib/feed.class.php
@@ -55,9 +55,10 @@ class Feed
if ($client->status == 200)
{
- if (preg_match ('/<\?xml version=[\'"].*?[\'"].*?\?>/m', $client->xml) &&
+ if (preg_match ('/<\?xml version=[\'"].*?[\'"].*?\?>/m',
+ substr ($client->xml, 0, 160)) &&
!matchContentType ($client->headers['Content-Type'],
- array ('text/html', 'application/xhtml+xml')))
+ array ('application/xhtml+xml')))
{
if (isFeedValid ($client)) {
recodeToUTF8 ($client->xml);

Return to:

Send suggestions and report system problems to the System administrator.