Skip to content

Commit 88dfb53

Browse files
committed
Fix relative path
1 parent 67447ba commit 88dfb53

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/controllers/User/ChangePassword.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ protected function tryChangePassword(
6969
return;
7070
}
7171
$denylist = Common::$config->bnetdocs->user_password_denylist_map;
72-
$denylist = json_decode(file_get_contents(__DIR__ . '/' . $denylist));
72+
$denylist = json_decode(file_get_contents('./' . $denylist));
7373
foreach ($denylist as $denylist_pw) {
7474
if (strtolower($denylist_pw->password) == strtolower($pw2)) {
7575
$model->error = 'PASSWORD_BLACKLIST';

src/controllers/User/Register.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ protected function tryRegister(Router &$router, UserRegisterModel &$model) {
126126
return;
127127
}
128128
$denylist = Common::$config->bnetdocs->user_password_denylist_map;
129-
$denylist = json_decode(file_get_contents(__DIR__ . '/' . $denylist));
129+
$denylist = json_decode(file_get_contents('./' . $denylist));
130130
foreach ($denylist as $denylist_pw) {
131131
if (strtolower($denylist_pw->password) == strtolower($pw1)) {
132132
$model->error = 'PASSWORD_BLACKLIST';

0 commit comments

Comments
 (0)