File tree 1 file changed +4
-3
lines changed
src/Magento/FunctionalTestingFramework/Util
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1644,13 +1644,13 @@ private function processPressKey($input)
1644
1644
$ arrayResult = [];
1645
1645
$ count = 0 ;
1646
1646
1647
- // matches arrays
1647
+ // matches all arrays and replaces them with placeholder to prevent later param manipulation
1648
1648
preg_match_all ('/[\[][^\]]*?[\]]/ ' , $ input , $ paramInput );
1649
1649
if (!empty ($ paramInput )) {
1650
1650
foreach ($ paramInput [0 ] as $ param ) {
1651
- $ arrayResult [static ::PRESSKEY_ARRAY_ANCHOR_KEY . $ count ] =
1651
+ $ arrayResult [self ::PRESSKEY_ARRAY_ANCHOR_KEY . $ count ] =
1652
1652
'[ ' . trim ($ this ->addUniquenessToParamArray ($ param )) . '] ' ;
1653
- $ input = str_replace ($ param , static ::PRESSKEY_ARRAY_ANCHOR_KEY . $ count , $ input );
1653
+ $ input = str_replace ($ param , self ::PRESSKEY_ARRAY_ANCHOR_KEY . $ count , $ input );
1654
1654
$ count ++;
1655
1655
}
1656
1656
}
@@ -1681,6 +1681,7 @@ private function processPressKey($input)
1681
1681
}
1682
1682
1683
1683
$ result = implode (', ' , $ result );
1684
+ // reinsert arrays into result
1684
1685
if (!empty ($ arrayResult )) {
1685
1686
foreach ($ arrayResult as $ key => $ value ) {
1686
1687
$ result = str_replace ($ key , $ value , $ result );
You can’t perform that action at this time.
0 commit comments