Project

General

Profile

« Previous | Next » 

Revision b7369ff8

Added by NewEraCracker over 9 years ago

This should prevent the possibility of illegal offsets

If you poke pfSense WebGUI you'll find some funny stuff. Username and Password should never be arrays at all.

View differences:

src/etc/inc/auth.inc
1530 1530

  
1531 1531
function authenticate_user($username, $password, $authcfg = NULL, &$attributes = array()) {
1532 1532

  
1533
	if (is_array($username) || is_array($password)) {
1534
		return false;
1535
	}
1536

  
1533 1537
	if (!$authcfg) {
1534 1538
		return local_backed($username, $password);
1535 1539
	}

Also available in: Unified diff