In ColdFusion 2021 I encountered a new wrinkle when using
url attribute must contain no leading or trailing spaces:
In my case the value of
someurlvariable was coming from a database.
Weird. IsValid("url") and isValid("email") allow leading or trailing carriage returns, new lines, tabs or spaces. (They shouldn't. Most regex rules don't trim strings before testing them.) I tested using TryCF.com and invalid spaces appear to be used with CFHTTP using 2021,0,0,323925.
@James I noticed that TryCF.com appears to be running on a Linux platform. This problem occurred in a Windows environment. Perhaps it's an issue with the JVM or even the OS.
An information technology professional with twenty three years experience in systems administration, computer programming, requirements gathering, customer service, and technical support.