mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 23:07:39 +02:00
[ticket/12268] Do not use substr but just compare the character
PHPBB3-12268
This commit is contained in:
@@ -22,6 +22,7 @@ class recursive_dot_prefix_filter_iterator extends \RecursiveFilterIterator
|
||||
{
|
||||
public function accept()
|
||||
{
|
||||
return !$this->current()->isDir() || substr($this->current()->getFilename(), 0, 1) !== '.';
|
||||
$filename = $this->current()->getFilename();
|
||||
return !$this->current()->isDir() || $filename[0] !== '.';
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user