Page MenuHomePhabricator

"Call to a member function exists() on a non-object" on trackback.php with bad input
Closed, ResolvedPublic

Description

Author: nickpj

Description:

CURL command:

curl --silent --include \
-F 'url'='x' \
-F 'blog_name'=\
-F 'article'='\</H2>'\
-F 'title'='Main Page'\
-F 'excerpt'='BLAH'\

'localhost/wiki/trackback.php'

LocalSettings.php includes this:

$wgUseTrackbacks = true;

error_reporting (E_ALL);

(i.e. stricter error reporting, and trackbacks usage enabled).

Resulting HTML output is:

<br />
<b>Fatal error</b>: Call to a member function exists() on a non-object in

<b>/var/www/hosts/mediawiki/phase3/trackback.php</b> on line <b>53</b><br />


Version: 1.8.x
Severity: minor

Details

Reference
bz6893

Event Timeline

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

wclark wrote:

Patch to fix null object bug

Attached:

rotemliss wrote:

Applied to r16451.