diff options
Diffstat (limited to 'modules/aggregator.module')
-rw-r--r-- | modules/aggregator.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/aggregator.module b/modules/aggregator.module index c9833e5fd..0dbde5585 100644 --- a/modules/aggregator.module +++ b/modules/aggregator.module @@ -326,7 +326,7 @@ function import_refresh($feed) { } // extract the XML file's encoding (the XML parser in PHP4 doesn't do this by itself): - if (ereg('^[^>]+encoding="([^"]+)"', $data, $match)) { + if (ereg('^<\?xml[^>]+encoding="([^"]+)"', $data, $match)) { $encoding = $match[1]; } |