Page MenuHomePhabricator

PHP error for call to getTimestamp() on bad input to Special:Revisiondelete
Closed, ResolvedPublic

Description

Author: nickpj

Description:

CURL example command:

curl --silent --include -F 'target'='Main Page' -F 'oldid[]'='5'

'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=XYYYZZZZXXX&oldid=5

HTML output (with E_ALL errors) includes:

<br />
<b>Fatal error</b>: Call to a member function getTimestamp() on a non-object in
<b>/var/www/hosts/mediawiki/phase3/includes/SpecialRevisiondelete.php</b> on

line <b>114</b><br />

Note: could potentially be a dupe of bug 6887 (both this and that have quite
similar input, but a different error message).


Version: 1.8.x
Severity: minor

Details

Reference
bz6888

Event Timeline

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

wclark wrote:

Patch to fix null object bug

Attached:

rotemliss wrote:

Fixed in r16454.