You are here

function drupalauth4ssp_valid_returnto_parameter in DrupalAuth for SimpleSAMLphp 7

Check the ReturnTo query parameter if it's in the allowed list.

Return value

bool True if ReturnTo parameter is in the allowed list, False otherwise.

2 calls to drupalauth4ssp_valid_returnto_parameter()
drupalauth4ssp_user_logout in ./drupalauth4ssp.module
Implements hook_user_logout().
_drupalauth4ssp_exec in ./drupalauth4ssp.module
Sets a special cookie for drupalauth4ssp.

File

./drupalauth4ssp.module, line 234
DrupalAuth For simpleSAMLphp module.

Code

function drupalauth4ssp_valid_returnto_parameter() {
  return drupal_match_path($_GET['ReturnTo'], variable_get('drupalauth4ssp_returnto_list', ''));
}