Subversion Repositories ALCASAR

Rev

Rev 1805 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1805 Rev 1836
Line 78... Line 78...
78
		session_register('nas_list');
78
		session_register('nas_list');
79
}
79
}
80
//Make sure we are only passed allowed strings in username
80
//Make sure we are only passed allowed strings in username
81
if (isset($login)){
81
if (isset($login)){
82
	if ($login != '')
82
	if ($login != '')
-
 
83
	{
-
 
84
		$accent = "âêôûéàèùîáâãäçèéêëìíîïñòóôõöùúûü";
83
		$login = preg_replace("/[^\w\.\/\@\:\-]/",'',$login);
85
		$login = preg_replace("/[^\w$accent\.\/\@\:\-]/",'',$login);
-
 
86
	}
84
	if ($login != '' && $config['general_strip_realms'] == 'yes'){
87
	if ($login != '' && $config['general_strip_realms'] == 'yes'){
85
		$realm_del = ($config['general_realm_delimiter'] != '') ? $config['general_realm_delimiter'] : '@';
88
		$realm_del = ($config['general_realm_delimiter'] != '') ? $config['general_realm_delimiter'] : '@';
86
		$realm_for = ($config['general_realm_format'] != '') ? $config['general_realm_format'] : 'suffix';
89
		$realm_for = ($config['general_realm_format'] != '') ? $config['general_realm_format'] : 'suffix';
87
		$new = explode($realm_del,$login,2);
90
		$new = explode($realm_del,$login,2);
88
		if (count($new) == 2)
91
		if (count($new) == 2)