7 Einträge, 1 Seite |
$code =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
if ($ENV{'REQUEST_METHOD'} eq 'POST') {
read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
} else {
$buffer = $ENV{'QUERY_STRING'};
}
@pairs = split(/&/, $buffer);
foreach $pair (@pairs) {
($name, $value) = split(/=/, $pair);
$value =~ tr/+/ /;
$value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
$value =~ s/\"//ge;
$value =~ s/%22//ge;
$value =~ s/\%22//ge;
$value =~ s/~!/ ~!/g;
$value =~ s/\|//g;
$FORM{$name} = $value;
}
7 Einträge, 1 Seite |