summaryrefslogtreecommitdiff
path: root/modules/aggregator.module
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2003-12-30 06:24:28 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2003-12-30 06:24:28 +0000
commit7ba70547c27900214c0eee0111df2ebc53a25986 (patch)
treee5a679cb49d029a57e725ed992af05e812a7eb47 /modules/aggregator.module
parente8265f07592937f149d0b1e4ba78898b71b86d10 (diff)
downloadbrdo-7ba70547c27900214c0eee0111df2ebc53a25986.tar.gz
brdo-7ba70547c27900214c0eee0111df2ebc53a25986.tar.bz2
- Improved regexp for encoding extraction
Diffstat (limited to 'modules/aggregator.module')
-rw-r--r--modules/aggregator.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/aggregator.module b/modules/aggregator.module
index be29a8995..c9833e5fd 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('^[^>]+encoding="([^"]+)"', $data, $match)) {
$encoding = $match[1];
}