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.
I just found out that a domain name, that doesn't match the Fully Qualified Domain Name, is removed and ignored at insert operation in the hook_nodeapi. I think this is not correct because the user is not warned about the error.
I created a small patch that moves the _hosting_valid_fqdn
function from the insert to validate, triggering a form_error when the prompted domain name is not valid.
Comment | File | Size | Author |
---|---|---|---|
aliases-not-validated-on-validate-op-in-hook-nodeapi.patch | 1.39 KB | Bladedu |
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedReproduced, tested and committed - thanks for your patch! :)