typo: pack "c" ist für signed byte, pack "C" für unsigned byte
authorSven Schöling <s.schoeling@linet-services.de>
Wed, 28 Dec 2011 18:58:27 +0000 (19:58 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Wed, 28 Dec 2011 18:58:27 +0000 (19:58 +0100)
SL/MoreCommon.pm

index 1b83653..1c1e001 100644 (file)
@@ -176,7 +176,7 @@ sub uri_decode {
   $str =~ tr/+/ /;
   $str =~ s/\\$//;
 
-  $str =~ s/%([0-9a-fA-Z]{2})/pack("c",hex($1))/eg;
+  $str =~ s/%([0-9a-fA-Z]{2})/pack("C",hex($1))/eg;
   $str =  Encode::decode('utf-8-strict', $str) if $::locale->is_utf8;
 
   return $str;