summaryrefslogtreecommitdiff
path: root/modules/aggregator/aggregator.module
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2003-12-30 06:28:01 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2003-12-30 06:28:01 +0000
commit205aa25e9b395a47b2995011739307070f1090c9 (patch)
tree8284ca98d58eada6ce8873334bbf856bd79b91ce /modules/aggregator/aggregator.module
parent7ba70547c27900214c0eee0111df2ebc53a25986 (diff)
downloadbrdo-205aa25e9b395a47b2995011739307070f1090c9.tar.gz
brdo-205aa25e9b395a47b2995011739307070f1090c9.tar.bz2
- Improved regexp for encoding extraction
Diffstat (limited to 'modules/aggregator/aggregator.module')
-rw-r--r--modules/aggregator/aggregator.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module
index c9833e5fd..0dbde5585 100644
--- a/modules/aggregator/aggregator.module
+++ b/modules/aggregator/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];
}