r12530 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r12529‎ | r12530 | r12531 >
Date:19:10, 8 January 2006
Author:hashar
Status:old
Tags:
Comment:
Second part of bug 4083: Special:Validation doesn't check wpEditToken
Modified paths:
  • /trunk/phase3/includes/SpecialValidate.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialValidate.php
@@ -526,9 +526,12 @@
527527 $this->deleteTopic( $id );
528528 }
529529
 530+ $token = htmlspecialchars( $wgUser->editToken() );
 531+
530532 # FIXME: Wikitext this
531533 $r .= "<p>" . $this->getParsedWiki( wfMsg( 'val_warning' ) ) . "</p>\n";
532534 $r .= "<form method='post'>\n";
 535+ $r .= '<input type="hidden" name="wpEditToken" value="' . $token .'" />';
533536 $r .= "<table>\n";
534537 $r .= "<tr>" . wfMsg( 'val_list_header' ) . "</tr>\n";
535538 foreach( $this->topicList as $x => $y ) {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r12529Fix security issues:...hashar19:02, 8 January 2006

Status & tagging log