Skip to:
Content

bbPress.org


Ignore:
Timestamp:
05/12/2012 09:25:55 PM (9 years ago)
Author:
westi
Message:

Make sure the redirect url is a string before we try and handle it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.1/bb-login.php

    r2742 r3896  
    1313
    1414// Look for 'redirect_to'
    15 if ( isset( $_REQUEST['redirect_to'] ) )
     15if ( isset( $_REQUEST['redirect_to'] ) && is_string( $_REQUEST['redirect_to'] ) )
    1616    $re = $_REQUEST['redirect_to'];
    1717
    1818    // Look for 're'
    19     if ( empty( $re ) && isset( $_REQUEST['re'] ) )
     19    if ( empty( $re ) && isset( $_REQUEST['re'] )  && is_string( $_REQUEST['re'] ) )
    2020        $re = $_REQUEST['re'];
    2121
     
    3232                if ( false !== strpos( $re, $home_path . 'register.php' ) || false !== strpos( $re, $home_path . 'bb-reset-password.php' ) )
    3333                    $re = bb_get_uri( null, null, BB_URI_CONTEXT_HEADER );
     34
    3435            }
    3536
Note: See TracChangeset for help on using the changeset viewer.