-
Notifications
You must be signed in to change notification settings - Fork 4
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
Custom twig template may result in 500 #21
Comments
@absynth42 @luke- I think this issue was fixed here #20. Also I cannot create a profile field with internal name but it can be stored with |
Ahhh, of course, I didn't create a custom profile field, I created a custom social bookmark field. Can I access that from within a Twig template? Is that part of the user property? |
Could you please tell or show how you create it?
@luke- I confirm there is a validation with regexp |
@yurabakhtin I would leave the error message as it is for now. |
So I'm evaluating HumHub and the VCard Popover plugin and I wanted to add a custom field "profile.LinkedIn-URL" to the card. This is the twig:
I can't spot any error in there but obviously this doesn't work. I can reliably cause HTTP 500 errors when trying to hover over a profile name.
Omitting a syntactically important character like the ending % before a } also leads to error messages within the popover vcards.
So I guess the bug or feature request here would be that twig templates entered in the configuration fields for profiles and possibly also spaces aren't parsed and validated before being saved and applied.
The text was updated successfully, but these errors were encountered: