[Frugalware-darcs] homepage-ng: Added pkgname filter to packages RSS as third parameter

CSECSY Laszlo boobaa at frugalware.org
Fri Jun 8 14:17:48 CEST 2007


Darcsweb-Url: http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=homepage-ng;a=darcs_commitdiff;h=20070608121711-60d9d-bb3be4a74e7515f29bcafbfb004a5a6ab68abb47.gz;

[Added pkgname filter to packages RSS as third parameter
CSECSY Laszlo <boobaa at frugalware.org>**20070608121711] {
hunk ./frugalware/rewrite.php 73
-		$urlsuffix="?type=".$params[0].(empty($params[1])?'':"&filter=".$params[1]).(empty($params[2])?'':"&arch=".$params[2]);
+		$urlsuffix="?type=".$params[0].
+			(empty($params[1])?'':"&filter=".$params[1]).
+			(empty($params[2])?'':"&arch=".$params[2]).
+			(empty($params[3])?'':"&pkg=".$params[3]);
hunk ./frugalware/rss.php 83
+			(empty($_GET['pkg']) ? '' : ' packages.pkgname = \'' . $_GET['pkg'] . '\' and').
+				// sql-inj attack is defended by rewrite.php:31
}


More information about the Frugalware-darcs mailing list