Make WordPress Core

Ticket #3127: 3127.diff

File 3127.diff, 1022 bytes (added by Nazgul, 19 years ago)
  • wp-admin/setup-config.php

     
    152152
    153153    // We'll fail here if the values are no good.
    154154    require_once('../wp-includes/wp-db.php');
    155         $handle = fopen('../wp-config.php', 'w');
    156155
     156    $magic_quotes = get_magic_quotes_runtime();
     157    set_magic_quotes_runtime(0);
     158    $handle = fopen('../wp-config.php', 'w');
     159
    157160    foreach ($configFile as $line_num => $line) {
    158161        switch (substr($line,0,16)) {
    159162            case "define('DB_NAME'":
     
    176179        }
    177180    }
    178181    fclose($handle);
    179         chmod('../wp-config.php', 0666);
     182    set_magic_quotes_runtime($magic_quotes);
     183
     184    chmod('../wp-config.php', 0666);
    180185?>
    181186<p>All right sparky! You've made it through this part of the installation. WordPress can now communicate with your database. If you are ready, time now to <a href="install.php">run the install!</a></p>
    182187<?php