Invalid URL

B

Bigh

Guest
This is some really great software.
I need some help with a url.
I have one field type set to WEB in Dadabik and it works fine with a vanilla url like http://www.yahoo.com, but I'm trying to enter a url which uses a different port number and the ":" colon seems to make it give me an error with an "invalid url". So if I enter http://www.yahoo.com:80 Dadabik gives me an error.
One of the url's I would really like to enter is http://mystery.words.com:8000/content/bigshot.pls
This would play an old time radio show.
I tried making the field just "Text" and "Alphanum" and then using HTML but I couldn't make that work either.

The url validation routine is in the general_functions.php file but I don't have the smarts to find the problem much less fix it.

Please, any help or suggestions would be appreciated.

bigh
 
E

Eugenio

Guest
Bigh wrote:
>
> This is some really great software.
> I need some help with a url.
> I have one field type set to WEB in Dadabik and it works fine
> with a vanilla url like http://www.yahoo.com, but I'm trying
> to enter a url which uses a different port number and the ":"
> colon seems to make it give me an error with an "invalid
> url". So if I enter http://www.yahoo.com:80 Dadabik gives me
> an error.
> One of the url's I would really like to enter is
> http://mystery.words.com:8000/content/bigshot.pls
> This would play an old time radio show.
> I tried making the field just "Text" and "Alphanum" and then
> using HTML but I couldn't make that work either.
>
> The url validation routine is in the general_functions.php
> file but I don't have the smarts to find the problem much
> less fix it.
>
> Please, any help or suggestions would be appreciated.

You are right, I'll fix it for a future release of DaDaBIK.

Eugenio.

(Latest version of DaDaBIK when this message was posted: 2.2.1)
 
G

Gill

Guest
I too am having this problem. The URL

http://www.logitech.com/index.cfm/products/details/US/EN,CRID=835,CONTENTID=6906

returns an error and my attempts to fix it haven't worked. I see this post hasn't been active for a year. Has a solution been offered yet? If not, could I just turn validation off?

I'm using 3.0 beta

Thanks

Gill
 
E

Eugenio

Guest
Gill wrote:

> I too am having this problem. The URL
>
>
> http://www.logitech.com/index.cfm/products/details/US/EN,CRID=835,CONTENTID=6906
>
> returns an error and my attempts to fix it haven't worked. I
> see this post hasn't been active for a year. Has a solution
> been offered yet? If not, could I just turn validation off?
>
> I'm using 3.0 beta

From the change log:
"The function that validate URLs now support port numbers, https protocol and four letters primary domain name (e.g. .info)." the url you have posted is not supported yet, because it contains /products/details/US/EN,CRID=835,CONTENTID=6906
after index.cfm

You can modifiy the function is_valid_url() in /include/general_functions.php or simply turn validation off by cleaning the function and adding just a code line:
return true;



(Latest version of DaDaBIK when this message was posted: 3.0 beta)
 
Top