summaryrefslogtreecommitdiff
path: root/trackback.php
diff options
context:
space:
mode:
Diffstat (limited to 'trackback.php')
-rw-r--r--trackback.php18
1 files changed, 2 insertions, 16 deletions
diff --git a/trackback.php b/trackback.php
index 274a1c82..6d2d826b 100644
--- a/trackback.php
+++ b/trackback.php
@@ -4,21 +4,7 @@
* @package MediaWiki
* @subpackage SpecialPage
*/
-
-unset($IP);
-define('MEDIAWIKI', true);
-if ( isset( $_REQUEST['GLOBALS'] ) ) {
- echo '<a href="http://www.hardened-php.net/index.76.html">$GLOBALS overwrite vulnerability</a>';
- die( -1 );
-}
-
-require_once('./includes/Defines.php');
-
-if (!file_exists('LocalSettings.php'))
- exit;
-
-require_once('./LocalSettings.php');
-require_once('includes/Setup.php');
+require_once( './includes/WebStart.php' );
require_once('DatabaseFunctions.php');
@@ -64,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(