View Full Version : Is valid URL function
TheAdminMarket
01-14-2015, 10:00 AM
Hello,
I'm wondering if there is any vB function similar to is_valid_email() which will validates if the input is a valid link. I found in a class_xxx.php file something verify_link() but I was getting errors when I tried to use it.
Thank you
Christos
PS: I'm looking for native vB function. I've a PHP function which does this work.
There's no good vBulletin function to verify URL's as far as I know.
I looked at the code of the edit profile page where you can set your homepage, but that uses the verify_link function which is pretty much pointless. It accepts URL's such as "http://" without a hostname.
TheAdminMarket
01-14-2015, 06:38 PM
There's no good vBulletin function to verify URL's as far as I know.
I looked at the code of the edit profile page where you can set your homepage, but that uses the verify_link function which is pretty much pointless. It accepts URL's such as "http://" without a hostname.
Thank you Dave. That's was the point where I also looked. Anyway I'll use a custom PHP function even if it's a bit old.
HM666
01-14-2015, 08:03 PM
Thank you Dave. That's was the point where I also looked. Anyway I'll use a custom PHP function even if it's a bit old.
Hey whatever works right? If it still works and there are no potential security risks with it noted then I see no problem in using an older form of the code. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.