Another quick fix that somehow escaped my testing

This commit is contained in:
Kai Hendry
2015-10-08 09:39:52 +00:00
parent d7946fe289
commit 48bea3758c

View File

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