From 440289ea637c1d72e5c475b0a5e4ee727ada4ffe Mon Sep 17 00:00:00 2001 From: Tomas Celaya Date: Tue, 4 Nov 2014 09:20:44 -0500 Subject: [PATCH] Add trailing slash if missing $checkDir did not contain a trailing slash on OS X Yosemite so $cdnJsonPath was '.../path/to.cdn.json' instead of '.../path/to/.cdn.json' --- src/Thomaswelton/LaravelRackspaceOpencloud/UrlGenerator.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Thomaswelton/LaravelRackspaceOpencloud/UrlGenerator.php b/src/Thomaswelton/LaravelRackspaceOpencloud/UrlGenerator.php index 473aaca..3dc9ef2 100755 --- a/src/Thomaswelton/LaravelRackspaceOpencloud/UrlGenerator.php +++ b/src/Thomaswelton/LaravelRackspaceOpencloud/UrlGenerator.php @@ -21,6 +21,10 @@ public function asset($path, $secure = null) // Look up through the directories looking for a // CDN json file while($checkDir !== public_path()){ + + if ($checkDir[strlen($checkDir) - 1] !== DIRECTORY_SEPARATOR) + $checkDir .= DIRECTORY_SEPARATOR; + $cdnJsonPath = $checkDir . '.cdn.json'; if(File::isFile($cdnJsonPath)){