FU: Add fu->set_cookie() (+ uri_unescape '+' fix)

This commit is contained in:
Yorhel 2025-03-17 13:46:03 +01:00
parent a7bfe146b1
commit d8ecc71abb
2 changed files with 62 additions and 2 deletions

View file

@ -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;
}