15.8. 使用 Shellhook 参数
流程
要将参数传递给 shellhook 脚本,请创建以下 HTTP 标头:
{ "X-Shellhook-Arg-1": "<%= @object.content_view_version_id %>, "X-Shellhook-Arg-2": "<%= @object.content_view_name %> }
{
"X-Shellhook-Arg-1": "<%= @object.content_view_version_id %>,
"X-Shellhook-Arg-2": "<%= @object.content_view_name %>
}
确保内容呈现到有效的 JSON。此外,仅传递安全字段,如数据库 ID、名称或标签,它们不包括新行或带引号字符。