Skip to:
Content

bbPress.org

Changeset 2448


Ignore:
Timestamp:
06/28/2010 07:24:26 PM (11 years ago)
Author:
chrishajer
Message:

Attempt to fix "double slash" issue when deep integrating with WordPress 3.0 (only.) Fixes #1194. Props GautamGupta

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bb-includes/functions.bb-meta.php

    r2447 r2448  
    298298            break;
    299299        case 'version':
    300             return '1.1-alpha-2447'; // Don't filter
     300            return '1.1-alpha-2448'; // Don't filter
    301301            break;
    302302        case 'bb_db_version' :
  • trunk/bb-settings.php

    r2412 r2448  
    480480require_once( BB_PATH . BB_INC . 'functions.bb-script-loader.php' );
    481481
    482 // Sanitise external input
    483 $_GET    = bb_global_sanitize( $_GET );
    484 $_POST   = bb_global_sanitize( $_POST );
    485 $_COOKIE = bb_global_sanitize( $_COOKIE, false );
    486 $_SERVER = bb_global_sanitize( $_SERVER );
    487 
     482/* Check if the globals have been sanitized by WordPress or not (else there would be extra slashes while deep integration) */
     483if ( !function_exists( 'wp_magic_quotes' ) ) {
     484    // Sanitise external input
     485    $_GET    = bb_global_sanitize( $_GET );
     486    $_POST   = bb_global_sanitize( $_POST );
     487    $_COOKIE = bb_global_sanitize( $_COOKIE, false );
     488    $_SERVER = bb_global_sanitize( $_SERVER );
     489}
    488490
    489491
Note: See TracChangeset for help on using the changeset viewer.