From: <sy...@us...> - 2004-06-10 16:15:48
|
Update of /cvsroot/tikiwiki/tiki In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18180 Modified Files: tiki-admin_modules.php Log Message: space and special characters in user menu names are replaced by _ to avoid html/unassign/cacheName problem Index: tiki-admin_modules.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/tiki-admin_modules.php,v retrieving revision 1.31 retrieving revision 1.32 diff -u -d -r1.31 -r1.32 --- tiki-admin_modules.php 31 Mar 2004 09:53:40 -0000 1.31 +++ tiki-admin_modules.php 10 Jun 2004 16:15:39 -0000 1.32 @@ -133,7 +133,7 @@ $smarty->assign_by_ref('um_name', $_REQUEST["um_name"]); $smarty->assign_by_ref('um_title', $_REQUEST["um_title"]); $smarty->assign_by_ref('um_data', $_REQUEST["um_data"]); - $modlib->replace_user_module($_REQUEST["um_name"], $_REQUEST["um_title"], $_REQUEST["um_data"]); + $modlib->replace_user_module(preg_replace("/\W/", "_",$_REQUEST["um_name"]), $_REQUEST["um_title"], $_REQUEST["um_data"]); $logslib->add_log('adminmodules','changed user module '.$_REQUEST["um_name"]); } |