(bug 6893) "Call to a member function exists() on a non-object" on trackback.php...
authorRotem Liss <rotem@users.mediawiki.org>
Sat, 9 Sep 2006 07:42:11 +0000 (07:42 +0000)
committerRotem Liss <rotem@users.mediawiki.org>
Sat, 9 Sep 2006 07:42:11 +0000 (07:42 +0000)
RELEASE-NOTES
trackback.php

index a0a402b..03f41e9 100644 (file)
@@ -185,7 +185,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Added Xml::option() for generating <option>s easily
 * Localized page numbers in drop-down for DjVu page selection
 * Fixed linktrail for vi
-
+* (bug 6893) "Call to a member function exists() on a non-object" on trackback.php with bad input
 
 == Languages updated ==
 
index ae1e32b..6d2d826 100644 (file)
@@ -50,7 +50,7 @@ $tbname = $_POST['blog_name'];
 $tbarticle = $_REQUEST['article'];
 
 $title = Title::newFromText($tbarticle);
-if (!$title->exists())
+if (!isset($title) || !$title->exists())
        XMLerror("Specified article does not exist.");
 
 $dbw->insert('trackbacks', array(