Skip to content

Commit f423622

Browse files
authored
Merge pull request #6858 from magento-tsg/2.4.3-develop-pr141
[Condor] Fixes for 2.4 (pr141) (2.4.3-develop)
2 parents b044775 + 7cfc3db commit f423622

File tree

5 files changed

+8
-11
lines changed

5 files changed

+8
-11
lines changed

app/code/Magento/Paypal/Controller/Express/OnAuthorization.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -114,17 +114,11 @@ public function __construct(
114114
public function execute(): ResultInterface
115115
{
116116
$controllerResult = $this->resultFactory->create(ResultFactory::TYPE_JSON);
117-
$quoteId = $this->getRequest()->getParam('quoteId');
118117
$payerId = $this->getRequest()->getParam('payerId');
119118
$tokenId = $this->getRequest()->getParam('paymentToken');
120-
$customerId = $this->getRequest()->getParam('customerId') ?: $this->_customerSession->getId();
121119

122120
try {
123-
if ($quoteId) {
124-
$quote = $customerId ? $this->cartRepository->get($quoteId) : $this->guestCartRepository->get($quoteId);
125-
} else {
126-
$quote = $this->_getQuote();
127-
}
121+
$quote = $this->_getQuote();
128122

129123
$responseContent = [
130124
'success' => true,

app/code/Magento/Paypal/etc/csp_whitelist.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,10 @@
3737
<value id="www_pilot_payflowlink_paypal" type="host">pilot-payflowlink.paypal.com</value>
3838
</values>
3939
</policy>
40+
<policy id="connect-src">
41+
<values>
42+
<value id="www_sandbox_paypal_com" type="host">www.sandbox.paypal.com</value>
43+
</values>
44+
</policy>
4045
</policies>
4146
</csp_whitelist>

app/code/Magento/Paypal/view/frontend/web/js/in-context/express-checkout-smart-buttons.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ define([
4747
var params = {
4848
paymentToken: data.orderID,
4949
payerId: data.payerID,
50-
quoteId: clientConfig.quoteId || '',
51-
customerId: clientConfig.customerId || '',
5250
'form_key': clientConfig.formKey
5351
};
5452

lib/internal/Magento/Framework/File/Test/Unit/UploaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function getCorrectFileNameProvider()
6262
'a.' . str_repeat('b', 88)
6363
],
6464
[
65-
'a.' . str_repeat('b', 199), // 201 characters
65+
'a.' . str_repeat('b', 89),
6666
true
6767
]
6868
];

lib/internal/Magento/Framework/File/Uploader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ public static function getCorrectFileName($fileName)
496496
$fileInfo['extension'] = $fileInfo['extension'] ?? '';
497497

498498
// account for excessively long filenames that cannot be stored completely in database
499-
$maxFilenameLength = 200;
499+
$maxFilenameLength = 90;
500500

501501
if (strlen($fileInfo['basename']) > $maxFilenameLength) {
502502
throw new \LengthException(

0 commit comments

Comments
 (0)