Skip to content

Commit

Permalink
Merge pull request #2854 from vanilla/hotfix/asset-absolute-paths
Browse files Browse the repository at this point in the history
Only trigger absolute CSS path lookup if first character is a directory separator.
  • Loading branch information
tburry committed Jun 22, 2015
2 parents fb54241 + 307994f commit abd01f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion applications/dashboard/models/class.assetmodel.php
Expand Up @@ -272,7 +272,7 @@ public static function cssPath($Filename, $Folder = '', $ThemeType = '') {
$Paths = array();

// 2. Check for a full path.
if (strpos($Filename, '/') !== false) {
if (strpos($Filename, '/') === 0) {
$Filename = ltrim($Filename, '/');

// Direct path was given
Expand Down

0 comments on commit abd01f3

Please sign in to comment.