FU: Add fu->set_cookie() (+ uri_unescape '+' fix)
This commit is contained in:
parent
a7bfe146b1
commit
d8ecc71abb
2 changed files with 62 additions and 2 deletions
|
|
@ -32,6 +32,7 @@ sub uri_escape :prototype($) ($s) {
|
|||
sub uri_unescape :prototype($) ($s) {
|
||||
return if !defined $s;
|
||||
utf8::encode($s);
|
||||
$s =~ tr/+/ /;
|
||||
$s =~ s/%([0-9A-Fa-f]{2})/chr(hex($1))/eg;
|
||||
utf8_decode $s;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue