Author: nickpj
Description:
CURL command:
curl --silent --include \
-F 'url'='title'\
-F 'blog_name'='80'\
-F 'article'='Main Page'\
-F 'excerpt'='"'\
'localhost/wiki/trackback.php'
LocalSettings.php includes this:
$wgUseTrackbacks = true;
error_reporting (E_ALL);
$wgShowSQLErrors = true;
(i.e. stricter error reporting, trackbacks usage enabled, and show details of
failed SQL queries).
HTML output contains:
<br />
<b>Notice</b>: Undefined index: title in
<b>/var/www/hosts/mediawiki/phase3/trackback.php</b> on line <b>46</b><br />
<html>
<head> <title>Database error</title> </head> <body> <h1><img src='/wiki/skins/common/images/wiki.png'
style='float:left;margin-right:1em' alt=''>Database error</h1>
A database query syntax error has occurred.
This may indicate a bug in the software.
The last attempted database query was:
<blockquote><tt>INSERT INTO trackbacks
(tb_page,tb_title,tb_url,tb_ex,tb_name) VALUES
('1',NULL,'title','&#0000034;','80')</tt></blockquote>
from within function "<tt>Database::insert</tt>".
MySQL returned error "<tt>1048: Column 'tb_title' cannot be null
(localhost)</tt>".</body></html>
Version: 1.8.x
Severity: minor