Skip to content

Commit c1d1f3b

Browse files
author
Dale Sikkema
committed
MAGETWO-38065: /magento_verion exposes too detailed version information
- insert space character
1 parent 75ad074 commit c1d1f3b

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Version/Controller/Index

1 file changed

+1
-1
lines changed

app/code/Magento/Version/Controller/Index/Index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct(Context $context, ProductMetadataInterface $productM
4040
public function execute()
4141
{
4242
$versionParts = explode('.', $this->productMetadata->getVersion());
43-
if(!isset($versionParts[0]) || !isset($versionParts[1])) {
43+
if (!isset($versionParts[0]) || !isset($versionParts[1])) {
4444
return ; // Major and minor version are not set - return empty response
4545
}
4646
$majorMinorVersion = $versionParts[0] . '.' . $versionParts[1];

0 commit comments

Comments
 (0)