Skip to content

Commit 4c9e4c2

Browse files
committed
Merge remote-tracking branch 'origin/MAGETWO-95506' into 2.1.16-develop-pr59
2 parents 9879757 + 7ca7708 commit 4c9e4c2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* Class Index
1212
*
1313
* @api
14+
* @SuppressWarnings(PHPMD.RequestAwareBlockMethod)
1415
*/
1516
class Index extends Template
1617
{
@@ -19,7 +20,7 @@ class Index extends Template
1920
*/
2021
private function getParamStore()
2122
{
22-
return $this->getRequest()->getParam('store') ?: 'all';
23+
return $this->stripTags($this->getRequest()->getParam('store')) ?: 'all';
2324
}
2425

2526
/**

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="<?php echo $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)