Skip to content

Commit 2071fcb

Browse files
fix: remove spaces before exploding
1 parent 1792fc9 commit 2071fcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phpmyfaq/src/phpMyFAQ/Session.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ public function checkSessionId(int $sessionIdToCheck, string $ipAddress): void
270270
*/
271271
private function getBotIgnoreList(): array
272272
{
273-
return explode(',', (string) $this->configuration->get('main.botIgnoreList'));
273+
return explode(',', str_replace(' ', '', (string) $this->configuration->get('main.botIgnoreList')));
274274
}
275275

276276
/**

0 commit comments

Comments
 (0)