cvs: php-bugs-web / search.php

From: Date: Tue, 02 Jul 2002 23:57:30 +0000
Subject: cvs: php-bugs-web / search.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-11118@lists.php.net to get a copy of this message
jimw Tue Jul 2 19:57:30 2002 EDT Modified files: /php-bugs-web search.php Log: fix xss holes Index: php-bugs-web/search.php diff -u php-bugs-web/search.php:1.26 php-bugs-web/search.php:1.27 --- php-bugs-web/search.php:1.26 Tue Jul 2 18:45:09 2002 +++ php-bugs-web/search.php Tue Jul 2 19:57:30 2002 @@ -98,10 +98,10 @@ $query .= " ORDER BY $order_by $direction"; } - if (!(int)$begin) $begin = 0; + $begin = (int)$begin; if ($limit != 'All' && !(int)$limit) $limit = 30; - if($limit!='All') $query .= " LIMIT $begin,$limit"; + if($limit!='All') $query .= " LIMIT $begin,".(int)$limit; if(stristr($query, ";")) { $errors[] = "<b>BAD HACKER!!</b> No database cracking for you today!";

« previous php.mirrors (#11118) next »