Skip to content

Commit 607e195

Browse files
committed
Merge pull request swagger-api#1867 from joevennix/fix-content-type-xss
Fix issue swagger-api#1866, XSS in content types from schema.
2 parents ce81991 + cbe7a14 commit 607e195

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/main/template/content_type.handlebars

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<select name="contentType" id="{{contentTypeId}}">
33
{{#if produces}}
44
{{#each produces}}
5-
<option value="{{this}}">{{{this}}}</option>
5+
<option value="{{this}}">{{this}}</option>
66
{{/each}}
77
{{else}}
88
<option value="application/json">application/json</option>

src/main/template/parameter_content_type.handlebars

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<select name="parameterContentType" id="{{parameterContentTypeId}}">
33
{{#if consumes}}
44
{{#each consumes}}
5-
<option value="{{this}}">{{{this}}}</option>
5+
<option value="{{this}}">{{this}}</option>
66
{{/each}}
77
{{else}}
88
<option value="application/json">application/json</option>

src/main/template/response_content_type.handlebars

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<select name="responseContentType" id="{{responseContentTypeId}}">
33
{{#if produces}}
44
{{#each produces}}
5-
<option value="{{this}}">{{{this}}}</option>
5+
<option value="{{this}}">{{this}}</option>
66
{{/each}}
77
{{else}}
88
<option value="application/json">application/json</option>

0 commit comments

Comments
 (0)