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.
Hello,
I ticked the option to validate url, but when I enter garbage text like "asdfasbadfva" it passes without any problem.
On the node view screen it will then link as "http://www.myownsite.com/asdfasbadfva".
Any tips?
Comments
Comment #1
giorgio79 CreditAttribution: giorgio79 commentedI just tried mistyping the http section like this "http:Asdfasdf" then it is caught fine. Perhaps at validation we should check if it contains .com or .org ... :)
Comment #2
jcfiala CreditAttribution: jcfiala commentedWell, the problem here is the wide variety of possible urls that the link field can accept. Basically, if there isn't a prefix like 'http:' or 'mailto:', then the link field guesses that you're using an _internal_ url, which could very well be named fjiefjswf, for all it knows. Something that someone suggested was a way to restrict the types of links someone can enter, which would involve segregating the validations. And as part of that, I suppose that the validator should check to see if a url that's supposed to be an internal url actually matches an internal path.
Comment #3
sammyd56 CreditAttribution: sammyd56 commentedMarking as a duplicate of #722524: DO NOT accept local links