Closed (duplicate)
Project:
Link
Version:
6.x-2.9
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Jul 2010 at 08:20 UTC
Updated:
20 Nov 2011 at 12:22 UTC
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 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 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 commentedMarking as a duplicate of #722524: DO NOT accept local links