Last modified: 2006-08-17 05:08:23 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T9038, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 7038 - Trivial capitalisation in FindSpam makes the whole thing not work
Trivial capitalisation in FindSpam makes the whole thing not work
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
PC Windows XP
: Normal major (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-need-review
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-08-17 04:38 UTC by William Scales
Modified: 2006-08-17 05:08 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description William Scales 2006-08-17 04:38:36 UTC
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>';
Comment 1 Brion Vibber 2006-08-17 05:08:23 UTC
Applied on r16100

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links