Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Follow-up to #2877082: Hook Webform Submission and prevent submission, if source entity is missing.
Problem/Motivation
Webform can have the source entity passed as a URL parameter. The source entity is not restricted to a specific entity type or validated.
Proposed resolution
Validate source entity that passed as URL parameters.
Remaining tasks
- Always validate source entity and return access denied page for invalid source entities.
- Add form_prepopulate_source_entity_type to webform settings
- Validate source entity type and return access denied page for invalid source entity type.
Comment | File | Size | Author |
---|---|---|---|
#3 | validate_source_entity-2888850-2.patch | 118.32 KB | jrockowitz |
|
Comments
Comment #3
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #4
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #5
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commented