Skip to content

Commit e6f0303

Browse files
fix: use trim instead of str_replace
1 parent 7e52a20 commit e6f0303

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(',', str_replace(' ', '', (string) $this->configuration->get('main.botIgnoreList')));
273+
return explode(',', trim((string) $this->configuration->get('main.botIgnoreList')));
274274
}
275275

276276
/**

0 commit comments

Comments
 (0)