From 48bea3758c4e75a46082dfeef8722b066ef40cf3 Mon Sep 17 00:00:00 2001 From: Kai Hendry Date: Thu, 8 Oct 2015 09:39:52 +0000 Subject: [PATCH] Another quick fix that somehow escaped my testing --- www/grep.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/grep.php b/www/grep.php index f5fbd2e..7895df9 100644 --- a/www/grep.php +++ b/www/grep.php @@ -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 . ');'; ?>