A question mark after forward slash in url causes truncation of url

hubris - June 2, 2009 - 22:22
Project:Link
Version:6.x-2.6
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

I have several link urls entered where the last portion is getting truncated, one such example is:

.../cm/community/features/interviews/blog/recession-exacerbates-data-management-issues-but-could-make-investigations-a-nightmare/?cs=32640

When output in a View as plain text it's truncated to:

.../cm/community/features/interviews/blog/recession-exacerbates-data-management-issues-but-could-make-investigations-a-nightmare/

which results in a 404 page...

This is happening for several urls of different lengths, they all get truncated right before the '?'. I'm assuming that the url isn't passing the RegEx test for valid urls because the question mark appears right after a forward slash...

I stink at RegEx, so I can't provide a possible solution, but I imagine it's something similar to http://drupal.org/node/401138

-Chris

#1

hubkei - September 19, 2009 - 16:09
Version:6.x-2.5» 6.x-2.6

subscribing.
same problem here on vers. 6.x-2.6 of the Link field. The ? symbol after a / forward slash make the the url to be cut off right before.

#2

nally - November 26, 2009 - 05:41

I am experiencing a case where "? and what follows" (i.e. a query string) is truncated, even though there is no / just before the ?.

Is anyone else experiencing that? Would that be the same bug as this one?

UPDATED: False alarm. I was theming using
$node->field_link_to_source['0']['url']
instead of
$node->field_link_to_source['0']['display_url']

#3

cgjohnson - December 3, 2009 - 19:19

This is also happening to me - when I output a Link field value as a Views field (and need to use the plain text display in Views), it breaks. Any solution? thanks.

 
 

Drupal is a registered trademark of Dries Buytaert.