Skip to content

Commit ed178d0

Browse files
Stephan PohlStephan Pohl
authored andcommitted
Merge pull request #4802 in SW/shopware from sw-18153/5.2/emotion-ajax-ddos-fix to 5.2
* commit 'e56e17cb43588aafab2bfdb407dccd35b8feda6a': SW-18153 - Prevents a callback function which executes an ajax request from being called indefinitely
2 parents c82381b + e56e17c commit ed178d0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

UPGRADE-5.2.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
This changelog references changes done in Shopware 5.2 patch versions.
44

5+
## 5.2.23
6+
* Added conditional statement in `themes/Frontend/Responsive/frontend/_public/src/js/jquery.product-slider.js` to prevent the plugin from executing an ajax request indefinitely when no product data is received
7+
58
## 5.2.22
69
* Fixed the picture implementation of the `box-emotion.tpl` to load the correct image sizes
710
* Added new event `plugin/swAutoSubmit/onChangeSelection` in `themes/Frontend/Responsive/frontend/_public/src/js/jquery.auto-submit.js`

themes/Frontend/Responsive/frontend/_public/src/js/jquery.product-slider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@
649649

650650
$.publish('plugin/swProductSlider/onLoadItemsSuccess', [ me, response ]);
651651

652-
if (typeof callback === 'function') {
652+
if (typeof callback === 'function' && me.itemsCount > 0) {
653653
callback.call(me, response);
654654
}
655655
}

0 commit comments

Comments
 (0)