summaryrefslogtreecommitdiff
path: root/import.php
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2010-12-13 22:26:27 +0000
committerfisharebest <fisharebest@gmail.com>2010-12-13 22:26:27 +0000
commit91bfe40cbc9e3000d65a1b6baea3ca3b154c784d (patch)
tree9063d95fef855fc911704603de8306f297f64f25 /import.php
parent67c2d836736a2e91f74139d002ff418b8a3b1878 (diff)
downloadwebtrees-91bfe40cbc9e3000d65a1b6baea3ca3b154c784d.tar.gz
webtrees-91bfe40cbc9e3000d65a1b6baea3ca3b154c784d.tar.bz2
webtrees-91bfe40cbc9e3000d65a1b6baea3ca3b154c784d.zip
Fix: Imported does not recognise encoding of files with indented headers.
Diffstat (limited to 'import.php')
-rw-r--r--import.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/import.php b/import.php
index c3b9bc9405..18556c9c39 100644
--- a/import.php
+++ b/import.php
@@ -123,7 +123,7 @@ for ($end_time=microtime(true)+1.0; microtime(true)<$end_time; ) {
exit;
}
// What character set is this? Need to convert it to UTF8
- if (preg_match('/\n1 CHAR(?:ACTER)? (.+)/', $data->chunk_data, $match)) {
+ if (preg_match('/\n[ \t]*1 CHAR(?:ACTER)? (.+)/', $data->chunk_data, $match)) {
$charset=strtoupper($match[1]);
} else {
$charset='ASCII';