mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-01 20:48:23 +08:00
Prevent CORS when importing protocols
This commit is contained in:
parent
83160a487b
commit
29f0557d3c
1 changed files with 2 additions and 1 deletions
|
@ -53,7 +53,8 @@ module ProtocolsImporter
|
|||
protocol_json['steps'].values.each do |step_json|
|
||||
step = Step.create!(
|
||||
name: step_json["name"],
|
||||
description: step_json["description"],
|
||||
description: # Sanitize description HTML
|
||||
ActionController::Base.helpers.sanitize(step_json['description']),
|
||||
position: step_pos,
|
||||
completed: false,
|
||||
user: user,
|
||||
|
|
Loading…
Reference in a new issue