diff options
| author | Joas Schilling <nickvergessen@gmx.de> | 2014-03-15 21:00:16 +0100 | 
|---|---|---|
| committer | Joas Schilling <nickvergessen@gmx.de> | 2014-03-15 21:00:16 +0100 | 
| commit | 584d7b5823e8c959e921dc5b154bf535182fc32d (patch) | |
| tree | 32dbcdfcfa4cf58189582ef53242b639bf38e119 | |
| parent | dc0bcdf8a08076f717e9e1b1f2c3ce57967dadb1 (diff) | |
| download | forums-584d7b5823e8c959e921dc5b154bf535182fc32d.tar forums-584d7b5823e8c959e921dc5b154bf535182fc32d.tar.gz forums-584d7b5823e8c959e921dc5b154bf535182fc32d.tar.bz2 forums-584d7b5823e8c959e921dc5b154bf535182fc32d.tar.xz forums-584d7b5823e8c959e921dc5b154bf535182fc32d.zip  | |
[ticket/12268] Do not use substr but just compare the character
PHPBB3-12268
| -rw-r--r-- | phpBB/phpbb/recursive_dot_prefix_filter_iterator.php | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/phpbb/recursive_dot_prefix_filter_iterator.php b/phpBB/phpbb/recursive_dot_prefix_filter_iterator.php index 28e1067d11..6ef63ec906 100644 --- a/phpBB/phpbb/recursive_dot_prefix_filter_iterator.php +++ b/phpBB/phpbb/recursive_dot_prefix_filter_iterator.php @@ -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] !== '.';  	}  }  | 
