We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8414f38 commit 20a6092Copy full SHA for 20a6092
interface/web/login/index.php
@@ -182,8 +182,7 @@ function is_admin_ip_whitelisted($ip, $conf)
182
// if the file doesn't exist, we assume that webmaster doesn't use this feature
183
if (!file_exists($conf['admin_ip_whitelist_file'])) return true;
184
185
- $file_content = file_get_contents($conf['admin_ip_whitelist_file']);
186
- $file_lines = explode("\n", $file_content);
+ $file_lines = file($conf['admin_ip_whitelist_file']);
187
188
$matches = array_filter($file_lines, function($v) use ($ip) {
189
$line = trim($v);
0 commit comments