Skip to content

Commit

Permalink
Only register asset bundle / JS flashes on CP requests
Browse files Browse the repository at this point in the history
Resolves #4390
  • Loading branch information
brandonkelly committed Jun 11, 2019
1 parent 1b26171 commit 18487ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG-v3.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- Fixed a bug where Craft was modifying custom log target configs before executing queue jobs. ([#3766](https://github.com/craftcms/cms/issues/3766))
- Fixed a bug where `craft\helpers\ChartHelper::getRunChartDataFromQuery()` assumed that the value would be integers. ([craftcms/commerce#849](https://github.com/craftcms/commerce/issues/849))
- Fixed a bug where `craft\services\Security::validateData()` was returning an empty string instead of `false` when the data didn’t validate. ([#4387](https://github.com/craftcms/cms/issues/4387))
- Fixed a bug where Craft could inject unexpected JavaScript into front-end requests. ([#4390](https://github.com/craftcms/cms/issues/4390))

## 3.1.29 - 2019-06-04

Expand Down
2 changes: 1 addition & 1 deletion src/web/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -1453,7 +1453,7 @@ protected function renderBodyEndHtml($ajaxMode)
*/
protected function registerAssetFlashes()
{
if (Craft::$app->getRequest()->getIsConsoleRequest()) {
if (!Craft::$app->getRequest()->getIsCpRequest()) {
return;
}

Expand Down

0 comments on commit 18487ce

Please sign in to comment.