Skip to:
Content

bbPress.org


Ignore:
Timestamp:
12/08/2008 07:18:40 PM (18 years ago)
Author:
sambauers
Message:

Add BB_NONCE_KEY and associated functionality.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bb-admin/includes/class.bb-install.php

    r1804 r1832  
    678678                                                'prerequisite' => 'toggle_1'
    679679                                        ),
     680                                        'bb_nonce_key' => array(
     681                                                'value'        => $_bb_default_secret_key,
     682                                                'label'        => __('bbPress "nonce" key'),
     683                                                'note'         => __('This should be a unique and secret phrase, it will be used to make form submission harder for an attacker to spoof.'),
     684                                                'prerequisite' => 'toggle_1'
     685                                        ),
    680686                                        'bb_table_prefix' => array(
    681687                                                'value'        => 'bb_',
    … …  
    11741180                        $data['bb_secure_auth_key']['value'] = addslashes(stripslashes($data['bb_secure_auth_key']['value']));
    11751181                        $data['bb_logged_in_key']['value']   = addslashes(stripslashes($data['bb_logged_in_key']['value']));
     1182                        $data['bb_nonce_key']['value']       = addslashes(stripslashes($data['bb_nonce_key']['value']));
    11761183                }
    11771184               
    … …  
    12241231                                "define('BB_SECURE_AU"  => array("'put your unique phrase here'", "'" . $data['bb_secure_auth_key']['value'] . "'"),
    12251232                                "define('BB_LOGGED_IN"  => array("'put your unique phrase here'", "'" . $data['bb_logged_in_key']['value'] . "'"),
     1233                                "define('BB_NONCE_KEY"  => array("'put your unique phrase here'", "'" . $data['bb_nonce_key']['value'] . "'"),
    12261234                                "\$bb_table_prefix = '" => array("'bb_'",                         "'" . $data['bb_table_prefix']['value'] . "'"),
    12271235                                "define('BB_LANG', ''"  => array("''",                            "'" . $data['bb_lang']['value'] . "'")
Note: See TracChangeset for help on using the changeset viewer.