r22013 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22012‎ | r22013 | r22014 >
Date:21:22, 8 May 2007
Author:vyznev
Status:old
Tags:
Comment:
disallow user js for Special:Userlogin and Special:Resetpass too, just in case
Modified paths:
  • /trunk/phase3/includes/SpecialResetpass.php (modified) (history)
  • /trunk/phase3/includes/SpecialUserlogin.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialUserlogin.php
@@ -705,6 +705,7 @@
706706 $wgOut->setPageTitle( wfMsg( 'userlogin' ) );
707707 $wgOut->setRobotpolicy( 'noindex,nofollow' );
708708 $wgOut->setArticleRelated( false );
 709+ $wgOut->disallowUserJs(); // just in case...
709710 $wgOut->addTemplate( $template );
710711 }
711712
Index: trunk/phase3/includes/SpecialResetpass.php
@@ -74,6 +74,8 @@
7575
7676 function showForm() {
7777 global $wgOut, $wgUser, $wgRequest;
 78+
 79+ $wgOut->disallowUserJs();
7880
7981 $self = SpecialPage::getTitleFor( 'Resetpass' );
8082 $form =

Follow-up revisions

RevisionCommit summaryAuthorDate
r23066Update per r22013robchurch12:11, 18 June 2007
r23087Merged revisions 23050-23086 via svnmerge from...david03:14, 19 June 2007