mirror of
https://github.com/thewesker/greptweet.git
synced 2025-12-20 12:11:05 -05:00
Search for fixed strings (i.e. disallow regexp)
This commit is contained in:
2
grep.php
2
grep.php
@@ -10,7 +10,7 @@ $QUERY=escapeshellarg($_GET['q']);
|
||||
//fwrite($fp, $_GET['q'] . " : " . $QUERY . "\n");
|
||||
//fclose($fp);
|
||||
|
||||
exec("zgrep -hi $QUERY tweets.txt", $array);
|
||||
exec("zgrep -Fhi $QUERY tweets.txt", $array);
|
||||
$data = json_encode($array);
|
||||
echo $_GET['jsoncallback'] . '(' . $data . ');';
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user