Projects
Infrastructure
phabricator
0003-Unbundle-wordlist.patch
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0003-Unbundle-wordlist.patch of Package phabricator
From 3216b41a2ad8e1ec38bbf2ed1006a39a7543b594 Mon Sep 17 00:00:00 2001 From: "Jeroen van Meeuwen (Kolab Systems)" <vanmeeuwen@kolabsys.com> Date: Wed, 10 Aug 2016 11:06:20 +0200 Subject: [PATCH 03/15] Unbundle wordlist --- .../auth/constants/PhabricatorCommonPasswords.php | 29 ++-------------------- 1 file changed, 2 insertions(+), 27 deletions(-) diff --git a/src/applications/auth/constants/PhabricatorCommonPasswords.php b/src/applications/auth/constants/PhabricatorCommonPasswords.php index 1313257..31f6ba9 100644 --- a/src/applications/auth/constants/PhabricatorCommonPasswords.php +++ b/src/applications/auth/constants/PhabricatorCommonPasswords.php @@ -32,39 +32,14 @@ final class PhabricatorCommonPasswords extends Phobject { /** - * Load the common password wordlist. + * Ignore the common password wordlist. * * @return map<string, bool> Map of common passwords. * * @task common */ private static function loadWordlist() { - $root = dirname(phutil_get_library_root('phabricator')); - $file = $root.'/externals/wordlist/password.lst'; - $data = Filesystem::readFile($file); - - $words = phutil_split_lines($data, $retain_endings = false); - - $map = array(); - foreach ($words as $key => $word) { - // The wordlist file has some comments at the top, strip those out. - if (preg_match('/^#!comment:/', $word)) { - continue; - } - $map[strtolower($word)] = true; - } - - // Add in some application-specific passwords. - $map += array( - 'phabricator' => true, - 'phab' => true, - 'devtools' => true, - 'differential' => true, - 'codereview' => true, - 'review' => true, - ); - - return $map; + return Array(); } } -- 2.9.3
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.