Skip to content

Commit

Permalink
Merge pull request swagger-api#1867 from joevennix/fix-content-type-xss
Browse files Browse the repository at this point in the history
Fix issue swagger-api#1866, XSS in content types from schema.
  • Loading branch information
fehguy committed Jan 13, 2016
2 parents ce81991 + cbe7a14 commit 607e195
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/template/content_type.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<select name="contentType" id="{{contentTypeId}}">
{{#if produces}}
{{#each produces}}
<option value="{{this}}">{{{this}}}</option>
<option value="{{this}}">{{this}}</option>
{{/each}}
{{else}}
<option value="application/json">application/json</option>
Expand Down
2 changes: 1 addition & 1 deletion src/main/template/parameter_content_type.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<select name="parameterContentType" id="{{parameterContentTypeId}}">
{{#if consumes}}
{{#each consumes}}
<option value="{{this}}">{{{this}}}</option>
<option value="{{this}}">{{this}}</option>
{{/each}}
{{else}}
<option value="application/json">application/json</option>
Expand Down
2 changes: 1 addition & 1 deletion src/main/template/response_content_type.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<select name="responseContentType" id="{{responseContentTypeId}}">
{{#if produces}}
{{#each produces}}
<option value="{{this}}">{{{this}}}</option>
<option value="{{this}}">{{this}}</option>
{{/each}}
{{else}}
<option value="application/json">application/json</option>
Expand Down

0 comments on commit 607e195

Please sign in to comment.