plugins/SpecialPageFuncs.php
changeset 112 008b1c42be72
parent 91 8079b0288e8e
child 116 77c75179bb95
--- a/plugins/SpecialPageFuncs.php	Sat Sep 01 23:29:33 2007 -0400
+++ b/plugins/SpecialPageFuncs.php	Sun Sep 02 00:23:07 2007 -0400
@@ -127,6 +127,12 @@
       $db->_die('An SQL injection attempt was caught at '.dirname(__FILE__).':'.__LINE__.'.');
     }
     
+    $ips = array(
+      'ip' => array(),
+      'u' => array()
+      );
+    $ips = $db->escape(serialize($ips));
+    
     $urlname = sanitize_page_id($urlname);
     $urlname = $db->escape($urlname);
     
@@ -140,7 +146,7 @@
       $db->_die('The page log could not be updated.');
     }
     
-    $q = $db->sql_query('INSERT INTO '.table_prefix.'pages(name,urlname,namespace) VALUES(\''.$name.'\', \''.$urlname.'\', \''.$_POST['namespace'].'\');');
+    $q = $db->sql_query('INSERT INTO '.table_prefix.'pages(name,urlname,namespace,delvote_ips) VALUES(\''.$name.'\', \''.$urlname.'\', \''.$_POST['namespace'].'\',\'' . $ips . '\');');
     if ( !$q )
     {
       $db->_die('The page entry could not be inserted.');