Normalizing package paths to include a single trailing slash.
diff --git a/system/core/Loader.php b/system/core/Loader.php
index 5a2175c..e297061 100644
--- a/system/core/Loader.php
+++ b/system/core/Loader.php
@@ -535,6 +535,8 @@
*/
function add_package_path($path)
{
+ $path = rtrim($path, '/').'/';
+
array_unshift($this->_ci_library_paths, $path);
array_unshift($this->_ci_model_paths, $path);
array_unshift($this->_ci_helper_paths, $path);
@@ -569,6 +571,8 @@
}
else
{
+ $path = rtrim($path, '/').'/';
+
foreach (array('_ci_library_paths', '_ci_model_paths', '_ci_helper_paths') as $var)
{
if (($key = array_search($path, $this->{$var})) !== FALSE)