It is usually a good idea to sanitize URL's with check_url
, but not in all situations.
Say I have this URL: <go href="http://www.example.com/?pid=12566&bid=123456&urlpath=http://www.example.com/prod/12000-some-product/">product link</go>
The resulting URL is http://www.example.com/?pid=12566&bid=123456&urlpath=http://www.example.com/prod/12000-some-product/
So &
's are turned into &
's by the check_url function.
It works if I remove check_url()
from this line, in gotwo.module:
'content' => $disclaimer_time . ';url=' . check_url($result->dst),
To:
'content' => $disclaimer_time . ';url=' . $result->dst,
Should this perhaps be an option under the settings?
"[*] Include check_url (sanitizes your URL and for example converts &
's into &
's"
Comments
Comment #0.0
ressa CreditAttribution: ressa commentedadded some more text to settings description
Comment #1
hass CreditAttribution: hass commented&
is correct in html code.Comment #2
ressa CreditAttribution: ressa commentedThat may be, but it breaks the links.
https://drupal.org/project/issues/gotwo?status=All&page=1
https://drupal.org/project/issues/gotwo?status=All&page=1
Link #1 takes you to the second page as expected, whereas link #2 takes you to the first page.
Comment #3
hass CreditAttribution: hass commentedThan we need to use any other validation function. Please provide a patch.
Comment #4
ressa CreditAttribution: ressa at Ardea commented