1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-24 18:04:43 +02:00

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

This commit is contained in:
sam_marshall 2006-10-04 10:11:15 +00:00
parent 1e4c8535ef
commit bdbed68baf

@ -169,7 +169,11 @@
$confirm.="&confirm[$cnfid]=".urlencode(join(" ",$cnfver));
}
if(count($err)==0) {
notice_yesno(get_string("strippagecheck", "wiki")."<br />".join(", ", $form->pagestostrip),
$pagestostrip=array();
foreach($form->pagestostrip as $pagetostrip) {
$pagestostrip[]=htmlspecialchars(urldecode($pagetostrip));
}
notice_yesno(get_string("strippagecheck", "wiki")."<br />".join(", ", $pagestostrip),
$link.$confirm, $link);
print_footer($course);
exit;