Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Wiki: list of pages to strip in the 'are you sure' message was incorr…

…ectly URL-encoded on display to user, this fix removes url encoding and html-encodes it instead
  • Loading branch information...
commit bdbed68baf729b5183ef870e6237a6d4e9de4379 1 parent 1e4c853
sam_marshall authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 mod/wiki/admin.php
View
6 mod/wiki/admin.php
@@ -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;

0 comments on commit bdbed68

Please sign in to comment.
Something went wrong with that request. Please try again.