Skip to content

Commit

Permalink
check for empty trimmed source
Browse files Browse the repository at this point in the history
  • Loading branch information
Commifreak committed May 19, 2023
1 parent 01942a9 commit 1708d88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/include/ABSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function __construct() {
case 'allowedSources':
$sources = explode("\r\n", $value);
foreach ($sources as $sourceKey => $source) {
if (empty($source)) {
if (empty(trim($source))) {
continue; // Skip empty lines
}
$sources[$sourceKey] = rtrim($source, '/');
Expand Down

0 comments on commit 1708d88

Please sign in to comment.