Fix double-encoding of spaces in query parameter keys in ->uri_for
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Mon, 11 Sep 2017 14:19:44 +0000 (15:19 +0100)
committerDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Mon, 11 Sep 2017 14:24:42 +0000 (15:24 +0100)
commit901b4331956b16740851040d0b9c109066a05620
tree564e5ec712fd44f2f986916c78b32467b8588b84
parent1e300b1c0ff0917934d63d1435e4ae533dc53e55
Fix double-encoding of spaces in query parameter keys in ->uri_for

Commit 5c779e9841d052721162a48ad96fdbda2acd1035 moved half of the key-
encoding part into the map over the values, but left the `s/ /+/g` in
place, causing spaces in query parameter keys to first be converted to
+, then to %2B.

This moves the current key encoding block out of the inner map and
removes the premature `s/ /+g/`.
lib/Catalyst.pm
t/aggregate/unit_core_uri_for.t