Hi there,

I'm getting the message "Not a valid URL" when attempting to use the following URL in a link field:
http://www.midphase.com/newaff/redir.pl?a=0.162594102629559&c=1&creative...|midPhase|TextLinks|TextLink&redirURL=

With some experimentation I've found it's the "|" symbol that's breaking it. Trailing "=" and &'s throughout seem to be OK.

Cheers,
Matt

Comments

yched’s picture

Project: Content Construction Kit (CCK) » Link
Version: 5.x-1.6-1 » 5.x-2.1
Component: General » Code

That would be a bug for the link field, I assume. Please set the version corresponding to the one you're using.

matticus’s picture

Aaah, my mistake. My installed version is 2.0 - although to be sure I've just updated to 2.1 on my test site and get the same result. I've left 5.x-2.1 as the version for this report.

sterwa’s picture

I would add that perhaps # symbol should also be allowed in the URL.
E.g., some CNN video URLs contain it:
e.g.,
www.cnn.com/video/#/video/showbiz/2007/12/06/anderson.britney.child.abus...

quicksketch’s picture

Status: Active » Fixed

Well... I decided to go ahead an include the | in the accepted URLs, even though pipes aren't technically allowed in URLs (they should be percent encoded). The purpose of link is to prevent accidental typos, not to keep a perfect collection of well-formed URLs.

http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/link/link.m...

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.