mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/12268] Do not use substr but just compare the character
PHPBB3-12268
This commit is contained in:
parent
dc0bcdf8a0
commit
584d7b5823
1 changed files with 2 additions and 1 deletions
|
@ -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] !== '.';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue