cvs: phpweb / search.php

From: Date: Tue, 04 Sep 2001 22:26:07 +0000
Subject: cvs: phpweb / search.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-6256@lists.php.net to get a copy of this message
rasmus Tue Sep 4 18:26:07 2001 EDT Modified files: /phpweb search.php Log: Oops, this is the right fix Index: phpweb/search.php diff -u phpweb/search.php:1.19 phpweb/search.php:1.20 --- phpweb/search.php:1.19 Tue Sep 4 18:00:43 2001 +++ phpweb/search.php Tue Sep 4 18:26:07 2001 @@ -166,8 +166,8 @@ $restrict = $MYSITE; $where = "PHP Web site"; } - if (isset($page)) { $off = "&page=$page"; } else { $off = ""; } - $query = escapeshellarg("words=$words&config=$config&exclude=$exclude&restrict=$restrict$off"); + if (isset($page)) { $off = "&page=".escapeshellcmd($page); } else { $off = ""; } + $query = "words=$words&config=$config&exclude=$exclude&restrict=$restrict$off"; exec("$htsearch_prog \"$query\"", $result); $rc = count($result); if ($rc<2) {

« previous php.mirrors (#6256) next »