Hi,

I have an affiliate link, which looks like this (but edited):

http://click.linksynergy.com/fs-bin/click?id=*LPYredf34g&offerid=11218.10330061&type=3&subid=3

And it wouldn't let me save it. The error i got was:
"You must specify a valid Destination URL."

Any way to account for that?

thanks,
mark

Comments

jeremy’s picture

The ad_text module validates URLs using Drupal's valid_url() function defined in common.inc. The problem appears to be the * in the URL -- valid_url() does not allow that character. As that is a valid URL, a bug should be filed against Drupal core.

jeremy’s picture

BTW: If you replace the * with %2A, does the link still work properly? Or does that break the affiliate system?

marqpdx’s picture

that appears to work (the %2A part).
thanks.
i'll submit something to core.
best,
m

jeremy’s picture

Status: Active » Fixed

Glad you've gotten things working. Updating issue status.

Anonymous’s picture

Status: Fixed » Closed (fixed)