File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
view/frontend/templates/swagger-ui Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class Index extends Template
19
19
*/
20
20
private function getParamStore ()
21
21
{
22
- return $ this ->getRequest ()->getParam ('store ' ) ?: 'all ' ;
22
+ return $ this ->stripTags ( $ this -> getRequest ()->getParam ('store ' ) ) ?: 'all ' ;
23
23
}
24
24
25
25
/**
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="<?= $ 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