Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/11/2010 11:54:44 AM (17 years ago)
Author:
apeatling
Message:

Fixes #1797, fixes #1825

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-forums/bp-forums-admin.php

    r2576 r2665  
    137137                        "define( 'BBDB_CHARSE"                  => array( "'utf8'",                             "'" . DB_CHARSET . "'" ),
    138138                        "define( 'BBDB_COLLAT"                  => array( "''",                                 "'" . DB_COLLATE . "'" ),
    139                         "define( 'BB_AUTH_KEY"                  => array( "'put your unique phrase here'",  "'" . AUTH_KEY . "'" ),
    140                         "define( 'BB_SECURE_A"                  => array( "'put your unique phrase here'",  "'" . SECURE_AUTH_KEY . "'" ),
    141                         "define( 'BB_LOGGED_I"                  => array( "'put your unique phrase here'",  "'" . LOGGED_IN_KEY . "'" ),
    142                         "define( 'BB_NONCE_KE"                  => array( "'put your unique phrase here'",  "'" . NONCE_KEY . "'" ),
     139                        "define( 'BB_AUTH_KEY"                  => array( "'put your unique phrase here'",  "'" . addslashes( AUTH_KEY ) . "'" ),
     140                        "define( 'BB_SECURE_A"                  => array( "'put your unique phrase here'",  "'" . addslashes( SECURE_AUTH_KEY ) . "'" ),
     141                        "define( 'BB_LOGGED_I"                  => array( "'put your unique phrase here'",  "'" . addslashes( LOGGED_IN_KEY ) . "'" ),
     142                        "define( 'BB_NONCE_KE"                  => array( "'put your unique phrase here'",  "'" . addslashes( NONCE_KEY ) . "'" ),
    143143                        "\$bb_table_prefix = '"                 => array( "'bb_'",                          "'" . $wpdb->base_prefix . "bb_'" ),
    144144                        "define( 'BB_LANG', '"                  => array( "''",                                 "'" . WPLANG . "'" )
    … …  
    163163
    164164        if ( defined( 'AUTH_SALT' ) )
    165                 $file .= "\n\n" . 'define(\'BB_AUTH_SALT\', "' . AUTH_SALT . '");';
     165                $file .= "\n\n" . 'define(\'BB_AUTH_SALT\', "' . addslashes( AUTH_SALT ) . '");';
    166166
    167167        if ( defined( 'LOGGED_IN_SALT' ) )
    168                 $file .= "\n" .   'define(\'BB_LOGGED_IN_SALT\', "' . LOGGED_IN_SALT . '");';
     168                $file .= "\n" .   'define(\'BB_LOGGED_IN_SALT\', "' . addslashes( LOGGED_IN_SALT ) . '");';
    169169
    170170        if ( defined( 'SECURE_AUTH_SALT' ) )
    171                 $file .= "\n" .   'define(\'BB_SECURE_AUTH_SALT\', "' . SECURE_AUTH_SALT . '");';
     171                $file .= "\n" .   'define(\'BB_SECURE_AUTH_SALT\', "' . addslashes( SECURE_AUTH_SALT ) . '");';
    172172
    173173        $file .= "\n\n" . 'define(\'WP_AUTH_COOKIE_VERSION\', 2);';
Note: See TracChangeset for help on using the changeset viewer.