diff --git a/search2/indexing/extractorCore.inc.php b/search2/indexing/extractorCore.inc.php index 309f451..8f5aaa1 100755 --- a/search2/indexing/extractorCore.inc.php +++ b/search2/indexing/extractorCore.inc.php @@ -686,7 +686,7 @@ abstract class TextExtractor extends DocumentExtractor $config = KTConfig::getSingleton(); $maxTextSize = $config->get('indexer/maxTextSize', 1024 * 1024 * 10); // we'll only take 10 meg by default - $content = substr(file_get_contents($this->sourcefile), 0, $maxTextSize); + $content = file_get_contents($this->sourcefile, null, null, null, $maxTextSize); if (false === $content) { return false;