Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing the invalid empty string handling in the trailing slas appende…

…r of FileLoader.
  • Loading branch information...
commit 12f4fe871aeb44c595cbc1e82d89424acea4dc1f 1 parent c2ebd0f
@zyxist zyxist authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  src/Opl/Collector/Configuration/FileLoader.php
View
3  src/Opl/Collector/Configuration/FileLoader.php
@@ -48,7 +48,8 @@ public function __construct($paths = array())
}
foreach($paths as &$path)
{
- if($path[strlen($path) - 1] != DIRECTORY_SEPARATOR)
+ $length = strlen($path);
+ if(0 == $length || DIRECTORY_SEPARATOR != $path[$length - 1])
{
$path .= DIRECTORY_SEPARATOR;
}
Please sign in to comment.
Something went wrong with that request. Please try again.