huginn/huginn

Using an additional single quote in Liquid var causes process get stuck

Open

#2,584 opened on 2019年8月14日

GitHub で見る
 (1 comment) (0 reactions) (0 assignees)Ruby (49,270 stars) (4,264 forks)batch import
bughelp wanted

説明

Monkey-patch added here broke liquid template parse.

Example:

string = {
  "a": {
    "type": "text",
    "value": "{{ data['I'm using another single quote'] }}"
  },
  "b": {
    "type": "text",
    "value": "{{ data['some text'] }}"
  }
}.to_json
Liquid::Template.parse(string)

or:

string = {
  "a": {
    "type": "text",
    "value": "{{ data['I\'m using another single quote'] }}"
  },
  "b": {
    "type": "text",
    "value": "{{ data['some text'] }}"
  }
}.to_json
Liquid::Template.parse(string)

ref: https://github.com/Shopify/liquid/issues/1110

コントリビューターガイド