Skip to content

Commit 6e83e48

Browse files
committed
ACP2E-1801: Bundle products cannot be added to admin order by SKU which contains slashes
1 parent adefd88 commit 6e83e48

File tree

1 file changed

+3
-4
lines changed
  • lib/internal/Magento/Framework

1 file changed

+3
-4
lines changed

lib/internal/Magento/Framework/Url.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -591,8 +591,8 @@ protected function _getRoutePath($routeParams = [])
591591
return $routePath;
592592
}
593593
$routePath = $this->_getActionPath();
594-
if ($routeParams !== null) {
595-
foreach ($routeParams as $key => $value) {
594+
if ($this->_getRouteParams()) {
595+
foreach ($this->_getRouteParams() as $key => $value) {
596596
if ($value === null || false === $value || '' === $value || !is_scalar($value)) {
597597
continue;
598598
}
@@ -893,7 +893,7 @@ function ($item) use (&$isCached) {
893893
private function createUrl($routePath = null, array $routeParams = null)
894894
{
895895
$escapeQuery = false;
896-
$escapeParams = true;
896+
$escapeParams = false;
897897

898898
/**
899899
* All system params should be unset before we call getRouteUrl
@@ -1014,7 +1014,6 @@ public function escape($value)
10141014
if ($value === null) {
10151015
return '';
10161016
}
1017-
10181017
$value = str_replace('"', '%22', $value);
10191018
$value = str_replace("'", '%27', $value);
10201019
$value = str_replace('>', '%3E', $value);

0 commit comments

Comments
 (0)