Hi devs,

I just reported http://jira.xwiki.org/browse/XCOMMONS-494 . It seems
the following generates a NPE:

$escapetool.url({
  'foo': $null,
  'bar': ['one', $null, 'three'],
  $null: 'value'
})

I see 3 possible results:

(1) Skip null parameter key and value

bar=one&bar=three

(2) Use 'null' for both the key and the value

foo=null&bar=one&bar=null&bar=three&null=value

(3) Use empty string for null value

foo=&bar=one&bar=&bar=three&null=value

I'm going to implement (1) if no one is against it.

Thanks,
Marius
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to