From: <to...@us...> - 2005-10-06 22:23:53
|
Update of /cvsroot/tikiwiki/tiki/lib/wiki-plugins In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4550 Modified Files: Tag: BRANCH-1-9 wikiplugin_wantedpages.php Log Message: Secured extract(), ignored pages list is + separated Index: wikiplugin_wantedpages.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/lib/wiki-plugins/wikiplugin_wantedpages.php,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -d -r1.1.2.1 -r1.1.2.2 --- wikiplugin_wantedpages.php 12 Jul 2005 21:41:56 -0000 1.1.2.1 +++ wikiplugin_wantedpages.php 6 Oct 2005 22:23:46 -0000 1.1.2.2 @@ -7,7 +7,7 @@ require_once "lib/wiki/pluginslib.php"; function wikiplugin_wantedpages_help() { - return tra("Lists ''wanted'' Wiki pages").":<br />~np~{WANTEDPAGES(ignore=>IgnoreThisPage,IgnoreAnotherPage)}{WANTEDPAGES}~/np~"; + return tra("Lists ''wanted'' Wiki pages").":<br />~np~{WANTEDPAGES(ignore=>IgnoreThisPage+IgnoreAnotherPage+...)}{WANTEDPAGES}~/np~"; } function wikiplugin_wantedpages($data, $params) { @@ -20,9 +20,9 @@ function wantedpages($data, $params) { // Grab and handle our Tiki parameters... - extract($params); + extract($params, EXTR_SKIP); if(!isset($ignore)) $ignore = ''; - $ignorepages = explode(',',$ignore); + $ignorepages = explode('+',$ignore); // Currently we only look in wiki pages. // Wiki links in articles, blogs, etc are ignored. |