Fixed yii\console\controllers\AssetController breaks CSS URLs, which start from '/'

This commit is contained in:
Klimov Paul
2014-11-11 14:49:20 +02:00
parent 1605905fc1
commit 112ad80d6e
3 changed files with 8 additions and 1 deletions

View File

@ -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;
}