Page MenuHomePhabricator

Trivial capitalisation in FindSpam makes the whole thing not work
Closed, ResolvedPublic

Description

Author: digitalme.wiki

Description:
A single miscapitalisation ("Findspam" instead of "FindSpam") caused it to not
be able to progress pass the IP entry stage.

How to reproduce:
Go to [[Special:FindSpam]], enter an IP address and submit.

Results:
Returns a "No such special page" error.

Expected results:
Spam should be found. :P

Build:
Firefox 1.5.0.4, mediawiki 1.8alpha
Should occur on any system though

I have prepared a simple patch that fixed it for me:

Index: FindSpam_body.php

  • FindSpam_body.php (revision 16098)

+++ FindSpam_body.php (working copy)
@@ -29,7 +29,7 @@

$ip = $wgRequest->getText( 'ip' );

# Show form
  • $self = Title::makeTitle( NS_SPECIAL, 'Findspam' );

+ $self = Title::makeTitle( NS_SPECIAL, 'FindSpam' );

$form  = wfOpenElement( 'form', array( 'method' => 'post', 'actio

n' => $self->getLocalUrl() ) );

$form .= '<table><tr><td align="right">' . wfMsgHtml( 'findspam-i

p' ) . '</td>';

$form .= '<td>' . wfInput( 'ip', 50, $ip ) . '</td></tr>';

Version: unspecified
Severity: major
OS: Windows XP
Platform: PC

Details

Reference
bz7038

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:23 PM
bzimport set Reference to bz7038.
bzimport added a subscriber: Unknown Object (MLST).