PDA

View Full Version : Suggest Link: listing url must be lower case


Joe Boxer
11-07-2006, 09:36 PM
eSydiCat Pro v2.0

If the visitor enters a mixed case url (i.e. http://www.MyWebSite.com), suggest-link.php returns error message:
"Make sure you entered valid link URL."

It does not remember the sponsored plan selected.

Joe

Dave Baker
11-08-2006, 12:42 AM
Hello Joe and welcome,
It's not bug. This feature has been closed. You can make it accessible. Use the following method:
***Open util.php and find function valid_url***

function valid_url($aUrl)

***In this function replace this line***

return preg_match('/^https?:\/\/[a-z0-9-]{2,63}(\.[a-z0-9-]{2,})*(:[0-9]{0,5})?(\/|$)\S*$/', $aUrl);

***with this line***

return preg_match('/^https?:\/\/[a-z0-9-]{2,63}(\.[a-zA-Z0-9-]{2,})*(:[0-9]{0,5})?(\/|$)\S*$/', $aUrl);

***Save file***