File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/code/Magento/Backend/App/Area Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -141,11 +141,11 @@ public function isHostBackend()
141141 return false ;
142142 }
143143
144- $ configuredPort = $ this ->uri ->getPort () ?: ($ this ->standardPorts [$ this ->uri ->getScheme ()] ?? '' );
144+ $ configuredPort = $ this ->uri ->getPort () ?: ($ this ->standardPorts [$ this ->uri ->getScheme ()] ?? '80 ' );
145145 $ configuredHost = $ this ->uri ->getHost () . ': ' . $ configuredPort ;
146146 $ host = $ this ->request ->getServer ('HTTP_HOST ' );
147147 if (!str_contains ($ host , ': ' )) {
148- $ host .= ': ' . ($ this ->standardPorts [$ this ->request ->getServer ('REQUEST_SCHEME ' )] ?? '' );
148+ $ host .= ': ' . ($ this ->standardPorts [$ this ->request ->getServer ('REQUEST_SCHEME ' )] ?? '80 ' );
149149 }
150150
151151 return strcasecmp ($ configuredHost , $ host ) === 0 ;
You can’t perform that action at this time.
0 commit comments