bug 1070: Fix problem with literal interpretation of the provided search string bug-1070
authorBenny Baumann <BenBE@geshi.org>
Tue, 18 Mar 2014 22:33:33 +0000 (23:33 +0100)
committerBenny Baumann <BenBE@geshi.org>
Tue, 18 Mar 2014 22:33:33 +0000 (23:33 +0100)
includes/general.php

index 3478dd4..50371bb 100644 (file)
                //echo "Points due to name matches: $points<br/>";
 
                $shellpwd = escapeshellarg($pwd);
-               $do = `grep $shellpwd /usr/share/dict/american-english`;
+               $do = `grep -F -- $shellpwd /usr/share/dict/american-english`;
                if($do)
                        $points--;