From bdbed68baf729b5183ef870e6237a6d4e9de4379 Mon Sep 17 00:00:00 2001 From: sam_marshall Date: Wed, 4 Oct 2006 10:11:15 +0000 Subject: [PATCH] Wiki: list of pages to strip in the 'are you sure' message was incorrectly URL-encoded on display to user, this fix removes url encoding and html-encodes it instead --- mod/wiki/admin.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mod/wiki/admin.php b/mod/wiki/admin.php index 4830bc5360..5e5b7e2bca 100644 --- a/mod/wiki/admin.php +++ b/mod/wiki/admin.php @@ -169,7 +169,11 @@ $confirm.="&confirm[$cnfid]=".urlencode(join(" ",$cnfver)); } if(count($err)==0) { - notice_yesno(get_string("strippagecheck", "wiki")."
".join(", ", $form->pagestostrip), + $pagestostrip=array(); + foreach($form->pagestostrip as $pagetostrip) { + $pagestostrip[]=htmlspecialchars(urldecode($pagetostrip)); + } + notice_yesno(get_string("strippagecheck", "wiki")."
".join(", ", $pagestostrip), $link.$confirm, $link); print_footer($course); exit; -- 2.39.5