-
-
Notifications
You must be signed in to change notification settings - Fork 240
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
url_encode throws on undefined value #479
Labels
Comments
Regarding undefined variables, it's a bit confusing that errors are coming from two procedures
I guess what we can do is to align with the ruby version. If one filter in ruby tolerates undefined variable, liquidjs should also do the same. |
harttle
changed the title
Cannot read properties of undefined (reading 'split') when calling filter w/ undefined value
url_encode throws on undefined value
Feb 23, 2022
🎉 This issue has been resolved in version 9.35.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Probably an edge case, but somebody encountered this while migrating their blog from Jekyll to Eleventy (ref: 11ty/eleventy#2234 (comment)) and thought I'd verify if there is some option we're possibly not setting.
So basically this is calling
{{ undefined | url_encode }}
and throwing the following error:(Although the error changes slightly depending on which filter you are calling.)
I'm not convinced whether or not this is something that is Liquid's responsibility (throwing errors when a filter tries to do something w/ a
null
orundefined
value when it expects a string/whatever). I could easily be convinced either way, but just wanted to run it past you in case I'm missing some semi-obvious setting in the LiquidOptions class.The text was updated successfully, but these errors were encountered: