File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
lib/internal/Magento/Framework Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments