Creating pages doesn't insert that crappy javascript hack anymore
authorDan
Mon, 01 Oct 2007 19:29:52 -0400
changeset 156 6df5f7a55a30
parent 155 edbff85d43e8
child 157 ebf00a7d21db
Creating pages doesn't insert that crappy javascript hack anymore
plugins/SpecialPageFuncs.php
--- a/plugins/SpecialPageFuncs.php	Sun Sep 30 20:20:07 2007 -0400
+++ b/plugins/SpecialPageFuncs.php	Mon Oct 01 19:29:52 2007 -0400
@@ -151,13 +151,13 @@
     {
       $db->_die('The page entry could not be inserted.');
     }
-    $q = $db->sql_query('INSERT INTO '.table_prefix.'page_text(page_id,namespace,page_text) VALUES(\''.$urlname.'\', \''.$_POST['namespace'].'\', \''.$db->escape('Please edit this page! <nowiki><script type="text/javascript">ajaxEditor();</script></nowiki>').'\');');
+    $q = $db->sql_query('INSERT INTO '.table_prefix.'page_text(page_id,namespace,page_text) VALUES(\''.$urlname.'\', \''.$_POST['namespace'].'\', \''.'\');');
     if ( !$q )
     {
       $db->_die('The page text entry could not be inserted.');
     }
     
-    header('Location: '.makeUrlNS($_POST['namespace'], sanitize_page_id($p)));
+    header('Location: '.makeUrlNS($_POST['namespace'], sanitize_page_id($p)) . '#do:edit');
     exit;
   }
   $template->header();