diff options
Diffstat (limited to 'src/search_php.h')
-rw-r--r-- | src/search_php.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/search_php.h b/src/search_php.h index 2ffa41c..fb6668a 100644 --- a/src/search_php.h +++ b/src/search_php.h @@ -14,9 +14,9 @@ "\n" "function readHeader($file)\n" "{\n" -" $header =fgetc($file); $header.=fgetc($file);\n" -" $header.=fgetc($file); $header.=fgetc($file);\n" -" return $header;\n" +" $header =fgetc($file); $header.=fgetc($file);\n" +" $header.=fgetc($file); $header.=fgetc($file);\n" +" return $header;\n" "}\n" "\n" "function computeIndex($word)\n" @@ -284,7 +284,7 @@ " if (!in_array($word,$foundWords))\n" " {\n" " $foundWords[]=$word;\n" -" search($file,$word,$results);\n" +" search($file,strtolower($word),$results);\n" " }\n" " $word=strtok(\" \");\n" " }\n" |