Last modified: 2006-09-09 09:35:13 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 6886 - PHP undefined offset on bad input to Special:Revisiondelete
PHP undefined offset on bad input to Special:Revisiondelete
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
1.8.x
All All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-08-01 06:46 UTC by Nick Jenkins
Modified: 2006-09-09 09:35 UTC (History)
0 users

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


Attachments

Description Nick Jenkins 2006-08-01 06:46:13 UTC
CURL example:
curl --silent --include  -F 'target'='x'
'192.168.0.64/wiki/index.php?title=Special:Revisiondelete'

or as URL:
http://192.168.0.64/wiki/index.php?title=Special:Revisiondelete&target=XXXXXXXYZ

HTML output (with E_ALL errors):
===================================
<br />
<b>Notice</b>:  Undefined offset:  0 in
<b>/var/www/hosts/mediawiki/phase3/includes/SpecialRevisiondelete.php</b> on
line <b>61</b><br />
<br />
<b>Notice</b>:  Undefined variable: rev in
<b>/var/www/hosts/mediawiki/phase3/includes/SpecialRevisiondelete.php</b> on
line <b>94</b><br />
<br />
<b>Fatal error</b>:  Call to a member function isDeleted() on a non-object in
<b>/var/www/hosts/mediawiki/phase3/includes/SpecialRevisiondelete.php</b> on
line <b>94</b><br />
===================================
Comment 1 wclark 2006-09-08 22:20:47 UTC
These errors occur because $this->revisions is null rather than being an array.
 One fix would be to add a check for null at line 60 in RevisionDeleteForm::show
in includes/SpecialRevisiondelete.php... except that I don't know if the
function should immediately return or should output some friendly message.  I'll
need to configure my local mediawiki so that I can test this myself to see what
would be most appropriate.
Comment 2 Rotem Liss 2006-09-09 09:35:13 UTC
Fixed in r16454.

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


Navigation
Links