From 03550f305003ceb691a326d70da75650f58f2386 Mon Sep 17 00:00:00 2001 From: Jordan Hall Date: Thu, 27 May 2021 16:31:01 +0100 Subject: [PATCH] Windows support for repetitive and sequential char passwords --- src/Rules/RepetitiveCharacters.php | 2 +- src/Rules/SequentialCharacters.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Rules/RepetitiveCharacters.php b/src/Rules/RepetitiveCharacters.php index bb3d8c2..e50e250 100644 --- a/src/Rules/RepetitiveCharacters.php +++ b/src/Rules/RepetitiveCharacters.php @@ -21,7 +21,7 @@ class RepetitiveCharacters implements Rule */ public function __construct() { - $this->passwords = explode(PHP_EOL, file_get_contents(self::PASSWORDS_FILE)); + $this->passwords = explode("\n", file_get_contents(self::PASSWORDS_FILE)); } /** diff --git a/src/Rules/SequentialCharacters.php b/src/Rules/SequentialCharacters.php index 9be2f4a..7ffa04a 100644 --- a/src/Rules/SequentialCharacters.php +++ b/src/Rules/SequentialCharacters.php @@ -21,7 +21,7 @@ class SequentialCharacters implements Rule */ public function __construct() { - $this->passwords = explode(PHP_EOL, file_get_contents(self::PASSWORDS_FILE)); + $this->passwords = explode("\n", file_get_contents(self::PASSWORDS_FILE)); } /**