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()
141
141
return false ;
142
142
}
143
143
144
- $ configuredPort = $ this ->uri ->getPort () ?: ($ this ->standardPorts [$ this ->uri ->getScheme ()] ?? '' );
144
+ $ configuredPort = $ this ->uri ->getPort () ?: ($ this ->standardPorts [$ this ->uri ->getScheme ()] ?? '80 ' );
145
145
$ configuredHost = $ this ->uri ->getHost () . ': ' . $ configuredPort ;
146
146
$ host = $ this ->request ->getServer ('HTTP_HOST ' );
147
147
if (!str_contains ($ host , ': ' )) {
148
- $ host .= ': ' . ($ this ->standardPorts [$ this ->request ->getServer ('REQUEST_SCHEME ' )] ?? '' );
148
+ $ host .= ': ' . ($ this ->standardPorts [$ this ->request ->getServer ('REQUEST_SCHEME ' )] ?? '80 ' );
149
149
}
150
150
151
151
return strcasecmp ($ configuredHost , $ host ) === 0 ;
You can’t perform that action at this time.
0 commit comments