mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
added a check agains ldap-insertion in the login-name
This commit is contained in:
parent
01dcc7cae1
commit
c218e158b1
@ -35,7 +35,12 @@
|
||||
error_reporting MUST be set to zero, otherwise you'll get nasty LDAP errors with a bad login/pass...
|
||||
these are just "warnings" and can be ignored.....
|
||||
*/
|
||||
error_reporting(0);
|
||||
error_reporting(0);
|
||||
|
||||
if (ereg('[()|&=*,<>!~]',$username))
|
||||
{
|
||||
return False;
|
||||
}
|
||||
|
||||
if(!$ldap = @ldap_connect($GLOBALS['phpgw_info']['server']['ldap_host']))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user