Quantcast
Channel: Editor — DataTables forums
Viewing all articles
Browse latest Browse all 3740

serverside url validation

$
0
0

Description of problem:
I want to validate urls serversideusing code like this:

            Field::inst( 'NameOfField' )
                    ->validator( Validate::url( 
                                                  ValidateOptions::inst()
                                  ->message( 'ErrorMessage' )
                ) )

With this I encounter several oddities: in my tests

What do I do wrong?

Or is this behaviour intentional? I read you are using a library (https://www.npmjs.com/package/valid-url/v/1.0.3), and they say it validates "relatively 'real-world' " ...

As a workaround I did some experiments with 'pinging' the adresses, which works, but not solid rock - so it would be very nice if someone could help me out.


Viewing all articles
Browse latest Browse all 3740

Trending Articles