Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/constants/PhabricatorCommonPasswords.php
Context not available. | |||||
$list = self::loadWordlist(); | $list = self::loadWordlist(); | ||||
} | } | ||||
return isset($list[strtolower($password)]); | return isset($list[@strtolower($password)]); | ||||
} | } | ||||
Context not available. | |||||
$map = array(); | $map = array(); | ||||
foreach ($words as $key => $word) { | foreach ($words as $key => $word) { | ||||
// The wordlist file has some comments at the top, strip those out. | // The wordlist file has some comments at the top, strip those out. | ||||
if (preg_match('/^#!comment:/', $word)) { | if (@preg_match('/^#!comment:/', $word)) { | ||||
continue; | continue; | ||||
} | } | ||||
$map[strtolower($word)] = true; | $map[@strtolower($word)] = true; | ||||
} | } | ||||
// Add in some application-specific passwords. | // Add in some application-specific passwords. | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0