Hello everyone,

PHP 5.4.13 (as module), Apache 2.4.4, Drupal 7.22, Link 7.x-1.1.

On a fresh install using the above configuration (that is, no extra modules) a perfectly valid URL like:

http://www.google.com/search?q=arguments&q=url&list&q=php&q=link&q=module

... will get truncated to the last value of the "q" argument. Apparently, the practice of using same argument name with multiple values is acceptable (Google will accept it); Java for example will create an array named "q" with each value as an element. Since I'm forced to insert links towards a Java app I was wondering if there's any chance that you'll replace "parse_str" in _link_parse_url() with something else?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

john.oltman’s picture

See attached patch that adds support for multiple arguments with the same name.

john.oltman’s picture

Version: 7.x-1.1 » 7.x-1.3
Priority: Normal » Major
Status: Active » Needs review

Status: Needs review » Needs work