]> git.mjollnir.org Git - moodle.git/commitdiff
Wiki: list of pages to strip in the 'are you sure' message was incorrectly URL-encode...
authorsam_marshall <sam_marshall>
Wed, 4 Oct 2006 10:11:15 +0000 (10:11 +0000)
committersam_marshall <sam_marshall>
Wed, 4 Oct 2006 10:11:15 +0000 (10:11 +0000)
mod/wiki/admin.php

index 4830bc5360d2371deef952408f23e819826e2630..5e5b7e2bca086f2f1186dc6ed264804656c3f20b 100644 (file)
                   $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;