Skip to content

Commit 50ea8f1

Browse files
committed
MAGETWO-95506: Broken Swagger markup
1 parent 2d9c1e6 commit 50ea8f1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/Swagger/Block/Index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Index extends Template
1919
*/
2020
private function getParamStore()
2121
{
22-
return $this->getRequest()->getParam('store') ?: 'all';
22+
return $this->stripTags($this->getRequest()->getParam('store')) ?: 'all';
2323
}
2424

2525
/**

app/code/Magento/Swagger/view/frontend/templates/swagger-ui/index.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ $schemaUrl = $block->getSchemaUrl();
2424
<div class="swagger-ui-wrap">
2525
<a id="logo" href="http://swagger.io">swagger</a>
2626
<form id='api_selector'>
27-
<input id="input_baseUrl" type="hidden" value="<?php /* @escapeNotVerified */ echo $schemaUrl ?>"/>
27+
<input id="input_baseUrl" type="hidden" value="<?= $block->escapeUrl($schemaUrl) ?>"/>
2828
<div class='input'><input placeholder="api_key" id="input_apiKey" name="apiKey" type="text"/></div>
2929
<div class='input'><a id="explore" href="#" data-sw-translate>apply</a></div>
3030
</form>

0 commit comments

Comments
 (0)