Let's stop inflicted languages taking over the world
[lhc/web/wiklou.git] / trackback.php
index 726cacb..64ca383 100644 (file)
@@ -7,6 +7,10 @@
 
 unset($IP);
 define('MEDIAWIKI', true);
+if ( isset( $_REQUEST['GLOBALS'] ) ) {
+       die( '<a href="http://www.hardened-php.net/index.76.html">$GLOBALS overwrite vulnerability</a>');
+}
+
 require_once('./includes/Defines.php');
 
 if (!file_exists('LocalSettings.php'))
@@ -64,11 +68,11 @@ if (!$title->exists())
        XMLerror("Specified article does not exist.");
 
 $dbw->insert('trackbacks', array(
-       'tb_id' => $title->getArticleID(),
-       'tb_title' => $tbtitle,
-       'tb_url' => $tburl,
-       'tb_ex' => $tbex,
-       'tb_name' => $tbname
+       'tb_page'       => $title->getArticleID(),
+       'tb_title'      => $tbtitle,
+       'tb_url'        => $tburl,
+       'tb_ex'         => $tbex,
+       'tb_name'       => $tbname
 ));
 
 XMLsuccess();