From 9321ffb37208c3e2313250fdd41e0b3739e99fe9 Mon Sep 17 00:00:00 2001 From: Mike Little Date: Fri, 23 May 2003 22:22:24 +0000 Subject: [PATCH] Fix problem with registerglobals off Sorted variable based table name. git-svn-id: https://develop.svn.wordpress.org/trunk@70 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/wp-install.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/wp-admin/wp-install.php b/wp-admin/wp-install.php index 89b9e47702..aa4be4a75b 100644 --- a/wp-admin/wp-install.php +++ b/wp-admin/wp-install.php @@ -15,7 +15,8 @@ if (!$dbconnexion) { echo mysql_error(); die(); } -if (!step) $step = 0; +$step = $HTTP_GET_VARS['step']; +if (!$step) $step = 0; ?> @@ -127,10 +128,10 @@ if (!$got_links) { " PRIMARY KEY (link_id) " . ") "; $result = mysql_query($sql) or print ("Can't create the table '$tablelinks' in the database.
" . $sql . "
" . mysql_error()); - $links = mysql_query("INSERT INTO b2links VALUES ('', 'http://wordpress.org', 'WordPress', '', '', 1, '', 'Y', 1, 0, '0000-00-00 00:00:00', '');"); - $links = mysql_query("INSERT INTO b2links VALUES ('', 'http://cafelog.com', 'b2', '', '', 1, '', 'Y', 1, 0, '0000-00-00 00:00:00', '');"); - $links = mysql_query("INSERT INTO b2links VALUES ('', 'http://photomatt.net', 'Matt', '', '', 1, '', 'Y', 1, 0, '0000-00-00 00:00:00', '');"); - $links = mysql_query("INSERT INTO b2links VALUES ('', 'http://zed1.com/b2/', 'Mike', '', '', 1, '', 'Y', 1, 0, '0000-00-00 00:00:00', '');"); + $links = mysql_query("INSERT INTO $tablelinks VALUES ('', 'http://wordpress.org', 'WordPress', '', '', 1, '', 'Y', 1, 0, '0000-00-00 00:00:00', '');"); + $links = mysql_query("INSERT INTO $tablelinks VALUES ('', 'http://cafelog.com', 'b2', '', '', 1, '', 'Y', 1, 0, '0000-00-00 00:00:00', '');"); + $links = mysql_query("INSERT INTO $tablelinks VALUES ('', 'http://photomatt.net', 'Matt', '', '', 1, '', 'Y', 1, 0, '0000-00-00 00:00:00', '');"); + $links = mysql_query("INSERT INTO $tablelinks VALUES ('', 'http://zed1.com/b2/', 'Mike', '', '', 1, '', 'Y', 1, 0, '0000-00-00 00:00:00', '');");