From e90580ee6f97e4be0141679447b0aaec3a0081ea Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 2 Oct 2008 23:23:21 +0200 Subject: Update auf 1.13.2 --- includes/User.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'includes/User.php') diff --git a/includes/User.php b/includes/User.php index 5c129819..4e39d678 100644 --- a/includes/User.php +++ b/includes/User.php @@ -1859,7 +1859,9 @@ class User { // In the spirit of DWIM return true; - return in_array( $action, $this->getRights() ); + # Use strict parameter to avoid matching numeric 0 accidentally inserted + # by misconfiguration: 0 == 'foo' + return in_array( $action, $this->getRights(), true ); } /** -- cgit v1.2.2