mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 04:37:42 +08:00
yii\console\controllers\AssetController fixed to respect data URL resources
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user