Skip to content

Commit 3bfa8ec

Browse files
authored
【アップローダー】サブフォルダコンテンツにて、ブログなどアイキャッチ画像をクリックすると表示に失敗する fix #4136 (#4137)
1 parent 3ff0a93 commit 3bfa8ec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/Baser/View/Helper/BcAppHelper.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ public function webroot($file)
9999
} else {
100100
$webPath = Router::url('/' . $asset[0]);
101101
}
102+
if (strpos($asset[0], DS) !== 0) {
103+
$webPath = DS . $webPath;
104+
}
102105
// <<<
103106

104107
$file = $asset[0];

0 commit comments

Comments
 (0)