Search for fixed strings (i.e. disallow regexp)

This commit is contained in:
Kai Hendry
2014-09-25 14:29:30 +08:00
parent 7e61590c8c
commit ab8aa55edd

View File

@@ -10,7 +10,7 @@ $QUERY=escapeshellarg($_GET['q']);
//fwrite($fp, $_GET['q'] . " : " . $QUERY . "\n"); //fwrite($fp, $_GET['q'] . " : " . $QUERY . "\n");
//fclose($fp); //fclose($fp);
exec("zgrep -hi $QUERY tweets.txt", $array); exec("zgrep -Fhi $QUERY tweets.txt", $array);
$data = json_encode($array); $data = json_encode($array);
echo $_GET['jsoncallback'] . '(' . $data . ');'; echo $_GET['jsoncallback'] . '(' . $data . ');';
?> ?>