r23169 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23168‎ | r23169 | r23170 >
Date:16:28, 21 June 2007
Author:robchurch
Status:old
Tags:
Comment:
Use canonical URL for requests
Modified paths:
  • /trunk/extensions/LookupUser/LookupUser.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LookupUser/LookupUser.php
@@ -68,14 +68,15 @@
6969 }
7070
7171 function showForm( $target ) {
72 - global $wgOut;
73 - $title = $this->getTitle();
74 - $action = htmlspecialchars( $title->getLocalURL() );
 72+ global $wgScript, $wgOut;
 73+ $title = htmlspecialchars( $this->getTitle()->getPrefixedText() );
 74+ $action = htmlspecialchars( $wgScript );
7575 $target = htmlspecialchars( $target );
7676 $username = htmlspecialchars( wfMsg( 'lookupuser_username' ) );
7777
7878 $wgOut->addHTML( <<<EOT
7979 <form method="get" action="$action">
 80+<input type="hidden" name="title" value="{$title}" />
8081 <table border="0">
8182 <tr>
8283 <td align="right">$username</td>

Status & tagging log