File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
view/frontend/templates/swagger-ui Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 11
11
* Class Index
12
12
*
13
13
* @api
14
+ * @SuppressWarnings(PHPMD.RequestAwareBlockMethod)
14
15
*/
15
16
class Index extends Template
16
17
{
@@ -19,7 +20,7 @@ class Index extends Template
19
20
*/
20
21
private function getParamStore ()
21
22
{
22
- return $ this ->getRequest ()->getParam ('store ' ) ?: 'all ' ;
23
+ return $ this ->stripTags ( $ this -> getRequest ()->getParam ('store ' ) ) ?: 'all ' ;
23
24
}
24
25
25
26
/**
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ $schemaUrl = $block->getSchemaUrl();
24
24
<div class="swagger-ui-wrap">
25
25
<a id="logo" href="http://swagger.io">swagger</a>
26
26
<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) ?> "/>
28
28
<div class='input'><input placeholder="api_key" id="input_apiKey" name="apiKey" type="text"/></div>
29
29
<div class='input'><a id="explore" href="#" data-sw-translate>apply</a></div>
30
30
</form>
You can’t perform that action at this time.
0 commit comments