public
Description: A cross-platform web server that's scripted with Nu.
Homepage: http://programming.nu
Clone URL: git://github.com/timburks/nunja.git
url-decode keys as well as values in posts.
timburks (author)
Mon May 05 18:50:49 -0700 2008
commit  592c6fecd13d44e60e37494bfe228f299e7c02f8
tree    45c0fa455d5cab931b5e189ec63107539e9c54ac
parent  bad61b54fda4c8ecc39241eded16453a61f0426c
...
105
106
107
108
 
109
110
111
...
105
106
107
 
108
109
110
111
0
@@ -105,7 +105,7 @@ static char int_to_char[] = "0123456789ABCDEF";
0
     for (i = 0; i < max; i++) {
0
         NSArray *pair = [[pairs objectAtIndex:i] componentsSeparatedByString:@"="];
0
         if ([pair count] == 2) {
0
- NSString *key = [pair objectAtIndex:0];
0
+ NSString *key = [[pair objectAtIndex:0] urlDecode];
0
             NSString *value = [[pair objectAtIndex:1] urlDecode];
0
             [result setObject:value forKey:key];
0
         }

Comments

    No one has commented yet.