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

giorgio79’s picture

I 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 ... :)

jcfiala’s picture

Title: Link Field does not validate URL » Link Field Treats Bad URLS as Internal URLS

Well, 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.

sammyd56’s picture

Status: Active » Closed (duplicate)

Marking as a duplicate of #722524: DO NOT accept local links