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 1111 * Class Index
1212 *
1313 * @api
14+ * @SuppressWarnings(PHPMD.RequestAwareBlockMethod)
1415 */
1516class 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 /**
Original file line number Diff line number Diff 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>
You can’t perform that action at this time.
0 commit comments