Skip to content

Commit cbe7a14

Browse files
committed
Fix issue swagger-api#1866, XSS in content types from schema.
1 parent 4f0fde7 commit cbe7a14

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: 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>

Diff for: 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>

Diff for: 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)