Skip to content

Commit 7e52a20

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phpmyfaq/src/phpMyFAQ/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ public function replaceMainReferenceUrl(string $oldUrl, string $newUrl): bool
515515
*/
516516
public function getAllowedMediaHosts(): array
517517
{
518-
return explode(',', str_replace(' ', '', $this->get('records.allowedMediaHosts')));
518+
return explode(',', trim($this->get('records.allowedMediaHosts')));
519519
}
520520

521521
public function getCustomCss(): string

0 commit comments

Comments
 (0)