Site crash depending on the token used

Created on 30 September 2022, over 2 years ago
Updated 25 August 2023, over 1 year ago

If the editor place inside of the content something like "[15:00-16:00]", Drupal will understand it as a token and try to process it.
The problem is that it will try to call the function "core_event_dispatcher_tokens" with the first parameter as "15", an integer. But then it crashes because this function enforces the first parameter to be string.

All other hook_tokens implemented in core are not enforcing type, so I think it should not be enforced in this module also.

🐛 Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

🇧🇪Belgium lisotton Brussels

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024