Skip to content

Commit ab3c369

Browse files
author
Dale Sikkema
committed
MAGETWO-38065: /magento_verion exposes too detailed version information
- remove other version info from frontend and headers of HTTP requests to external resources
1 parent 33f60f0 commit ab3c369

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

app/code/Magento/Theme/view/frontend/templates/html/bugreport.phtml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,4 @@
1010
target="_blank">
1111
<?php echo __('Report All Bugs') ?>
1212
</a>
13-
<strong><?php echo __('(ver. %1)', \Magento\Framework\AppInterface::VERSION) ?></strong>
1413
</small>

app/code/Magento/Theme/view/frontend/templates/html/footer.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<?php echo $block->getChildHtml() ?>
1313
<p class="bugs"><?php echo __('Help Us Keep Magento Healthy') ?> - <a
1414
href="http://www.magentocommerce.com/bug-tracking"
15-
target="_blank"><strong><?php echo __('Report All Bugs') ?></strong></a> <?php echo __('(ver. %1)', \Magento\Framework\AppInterface::VERSION) ?>
15+
target="_blank"><strong><?php echo __('Report All Bugs') ?></strong></a>
1616
</p>
1717
<address><?php echo $block->getCopyright() ?></address>
1818
</div>

lib/internal/Magento/Framework/Filesystem/Driver/Http.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,7 @@ public function fileOpen($path, $mode)
167167
'Host: ' .
168168
$hostname .
169169
"\r\n" .
170-
'User-Agent: Magento ver/' .
171-
\Magento\Framework\AppInterface::VERSION .
170+
'User-Agent: Magento' .
172171
"\r\n" .
173172
'Connection: close' .
174173
"\r\n" .

0 commit comments

Comments
 (0)