mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-04 06:37:55 +08:00
Fixed yii\console\controllers\AssetController breaks CSS URLs, which start from '/'
This commit is contained in:
@ -565,7 +565,7 @@ EOD;
|
||||
$fullMatch = $matches[0];
|
||||
$inputUrl = $matches[1];
|
||||
|
||||
if (preg_match('/^https?:\/\//is', $inputUrl) || preg_match('/^data:/is', $inputUrl)) {
|
||||
if (strpos($inputUrl, '/') === 0 || preg_match('/^https?:\/\//is', $inputUrl) || preg_match('/^data:/is', $inputUrl)) {
|
||||
return $fullMatch;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user