Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch channel filters to use strings not literals #6251

Merged
merged 1 commit into from
Dec 21, 2015

Conversation

ErisDS
Copy link
Member

@ErisDS ErisDS commented Dec 20, 2015

fixes #6247

  • GQL has a bug where literals starting with numbers are incorrectly parsed
  • Using strings instead of literals is a workaround, but is probably safer anyway

fixes TryGhost#6247

- GQL has a bug where literals starting with numbers are incorrectly parsed
- Using strings instead of literals is a workaround, but is probably safer anyway
@ErisDS
Copy link
Member Author

ErisDS commented Dec 20, 2015

As commented on the issue, this is effectively a quick fix. It's still probably the right thing to do, as using a proper quoted string is safer than a literal and literals are really intended for developer ease when using the {{#get}} helper or API over ajax.

The underlying bug in GQL is not a quick thing to resolve, so I'll probably partner this PR with some updates to the documentation to make using strings more prominent.

sebgie added a commit that referenced this pull request Dec 21, 2015
Switch channel filters to use strings not literals
@sebgie sebgie merged commit c533c48 into TryGhost:master Dec 21, 2015
@ErisDS ErisDS deleted the issues-6247 branch February 9, 2016 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

500/422 error on tags started with number and hyphen
2 participants