yii\console\controllers\AssetController fixed to respect data URL resources

This commit is contained in:
Klimov Paul
2014-04-17 12:11:34 +03:00
parent 650440d941
commit 72aba34210
3 changed files with 12 additions and 1 deletions

View File

@ -537,7 +537,7 @@ EOD;
$fullMatch = $matches[0];
$inputUrl = $matches[1];
if (preg_match('/https?:\/\//is', $inputUrl)) {
if (preg_match('/^https?:\/\//is', $inputUrl) || preg_match('/^data:/is', $inputUrl)) {
return $fullMatch;
}