| 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 ); |
| | 482 | /* Check if the globals have been sanitized by WordPress or not (else there would be extra slashes while deep integration) */ |
| | 483 | if ( !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 | } |