summaryrefslogtreecommitdiffstats
path: root/src/search.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/search.php')
-rw-r--r--src/search.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/search.php b/src/search.php
index bc4330d..cef406c 100644
--- a/src/search.php
+++ b/src/search.php
@@ -14,9 +14,9 @@ function readString($file)
function readHeader($file)
{
- $header =fgetc($file); $header.=fgetc($file);
- $header.=fgetc($file); $header.=fgetc($file);
- return $header;
+ $header =fgetc($file); $header.=fgetc($file);
+ $header.=fgetc($file); $header.=fgetc($file);
+ return $header;
}
function computeIndex($word)
@@ -284,7 +284,7 @@ function main()
if (!in_array($word,$foundWords))
{
$foundWords[]=$word;
- search($file,$word,$results);
+ search($file,strtolower($word),$results);
}
$word=strtok(" ");
}