Commit 73f34201 authored by Aaron Wells's avatar Aaron Wells

Typo; "strrpos" instead of "strpos"

parent 8b1c1116
......@@ -229,7 +229,7 @@ foreach ($commitancestors as $commit) {
foreach ($TRUSTED_EMAIL_DOMAINS as $domain) {
// Verify that the user's email address ends with "@" and this domain
// (Security of this relies on Gerrit to have properly validated their email address's structure)
if (strrpos(strrev($account->email), strrev('@' . $domain)) === 0) {
if (strpos(strrev($account->email), strrev('@' . $domain)) === 0) {
$trustedusers[$uploader] = true;
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment