Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

URLdecode stuff from psgi.input using URI::Escape

  • Loading branch information...
commit 32617119814521123e0e6e423d1e1e722a44d9d1 1 parent d298f04
Tadeusz Sośnierz authored

Showing 2 changed files with 4 additions and 2 deletions. Show diff stats Hide diff stats

  1. +1 1  META.info
  2. +3 1 lib/Bailador/Request.pm
2  META.info
@@ -2,6 +2,6 @@
2 2 "name" : "Bailador",
3 3 "version" : "*",
4 4 "description" : "A bare-bones Dancer port",
5   - "depends" : [ "HTTP::Easy", "Template::Mojo" ],
  5 + "depends" : [ "HTTP::Easy", "Template::Mojo", "URI" ],
6 6 "source-url" : "git://github.com/tadzik/Bailador.git"
7 7 }
4 lib/Bailador/Request.pm
... ... @@ -1,11 +1,13 @@
1 1 class Bailador::Request {
  2 + use URI::Escape;
  3 +
2 4 has $.env is rw;
3 5
4 6 method params {
5 7 my %ret;
6 8 for $.env<psgi.input>.split('&') -> $p {
7 9 my $pair = $p.split('=');
8   - %ret{$pair[0]} = $pair[1];
  10 + %ret{$pair[0]} = uri_unescape $pair[1];
9 11 }
10 12 return %ret;
11 13 }

0 comments on commit 3261711

Please sign in to comment.
Something went wrong with that request. Please try again.