Ajax query string, Hash.toQueryPair, and mod_perl
trevor-indosoft opened this issue · 0 comments
trevor-indosoft commented
I came across an issue with Ajax requests handled by mod_perl yesterday that may need to be addressed. Currently, toQueryPair returns only the key if the value is undefined. This can result in a query string along the lines of key1=value1&key2=value2&key3&key4=value4
being interpreted as ('key1' => 'value1', 'key2' => 'value2', 'key3&key4' => 'value4')
. Simply adding an equal sign remedies the problem -- key1=value1&key2=value2&key3=&key4=value4
is interpreted as ('key1' => 'value1', 'key2' => 'value2', 'key3' => '', 'key4' => 'value4')