Browse Source

Zend_Search_Lucene: ZF-7856 fix.

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@18487 44c647ce-9c0f-0410-b52a-842ac1e357ba
alexander 16 years ago
parent
commit
f274135f42
1 changed files with 1 additions and 1 deletions
  1. 1 1
      library/Zend/Search/Lucene/Document/Html.php

+ 1 - 1
library/Zend/Search/Lucene/Document/Html.php

@@ -94,7 +94,7 @@ class Zend_Search_Lucene_Document_Html extends Zend_Search_Lucene_Document
             if (preg_match('/<html>/i', $htmlData, $matches, PREG_OFFSET_CAPTURE)) {
                 // It's an HTML document
                 // Add additional HEAD section and recognize document
-                $htmlTagOffset = $matches[0][1] + strlen($matches[0][1]);
+                $htmlTagOffset = $matches[0][1] + strlen($matches[0][0]);
 
                 @$this->_doc->loadHTML(iconv($defaultEncoding, 'UTF-8//IGNORE', substr($htmlData, 0, $htmlTagOffset))
                                      . '<head><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=UTF-8"/></head>'