]> bicyclesonthemoon.info Git - botm/common-perl/commitdiff
fix URL decoding v1.0.20
authorb <rowerynaksiezycu@gmail.com>
Fri, 29 Sep 2023 17:03:13 +0000 (17:03 +0000)
committerb <rowerynaksiezycu@gmail.com>
Fri, 29 Sep 2023 17:03:13 +0000 (17:03 +0000)
botm_common.pm

index 19e4ff8ffc6584f021d5963be5391615b0555325..b818872b63f5c104464105988c306a1916f8b83d 100644 (file)
@@ -25,7 +25,7 @@ use Encode ('encode', 'decode');
 
 use Exporter;
 
-our $VERSION     = '1.0.19';
+our $VERSION     = '1.0.20';
 our @ISA         = qw(Exporter);
 our @EXPORT      = ();
 our @EXPORT_OK   = (
@@ -591,7 +591,7 @@ sub url_decode {
        if ($encoding eq '') {
                $encoding = 'utf8';
        }
-       $t =~ s/((%[0-9A-Fa-f]{2})+)/url_decode_xch($1)/egs;
+       $t =~ s/((%[0-9A-Fa-f]{2})+)/url_decode_xch($1, $encoding)/egs;
        return $t;
 }