Subject: | Don't cause spurious warnings in URI::Escape |
To avoid spurious warnings in URI::Escape, please do the following in _make_querystring:
sub _make_querystring {
my ($ref) = @_;
my @qs = ();
my $keyval;
for my $key ( keys %{$ref} ) {
- $keyval = uri_escape_utf8($key) . '=' . uri_escape_utf8($ref->{$key});
+ $keyval = uri_escape_utf8($key) . '=' . uri_escape_utf8($ref->{$key} || '');
push(@qs, $keyval);
}
return '?' . join('&',@qs);
}
This provides a defined value so URI::Escape doesn't whinge.