Applied fixes from FlintCI

pull/2459/head
Julio Montoya 8 years ago
parent 4783419a08
commit fd962feaf2
  1. 2
      main/admin/ldap_import_students_to_session.php
  2. 2
      main/inc/local.inc.php

@ -14,7 +14,7 @@ require_once '../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
// Access restrictions
api_protect_admin_script();
require('../auth/ldap/authldap.php');
require '../auth/ldap/authldap.php';
$annee_base = date('Y');

@ -726,7 +726,7 @@ if (!empty($_SESSION['_user']['user_id']) && !($login || $logout)) {
//this last function should trigger a redirect, so we can die here safely
die('Openid login redirection should be in progress');
} elseif (!empty($_GET['openid_identity'])) { //it's usual for PHP to replace '.' (dot) by '_' (underscore) in URL parameters
include(api_get_path(SYS_CODE_PATH).'auth/openid/login.php');
include api_get_path(SYS_CODE_PATH).'auth/openid/login.php';
$res = openid_complete($_GET);
if ($res['status'] == 'success') {
$id1 = Database::escape_string($res['openid.identity']);

Loading…
Cancel
Save