Skip to content

Using an additional single quote doesn't raise parsing error and causes a deadlock #1110

@monsha

Description

@monsha

v4.0.3

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, :error_mode => :strict) it doesn't raise any error and doesn't even return any output

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions