fiddle with 8 bit characters, start to check everything more rigourously
[spider.git] / perl / Msg.pm
index f5704a81e46eb237403f695383e7bd3307770dbf..0af6791156f92b8c8e9698707fca33202ff3ae18 100644 (file)
@@ -237,7 +237,7 @@ FINISH:
 
        while (@lines){
                $msg = shift @lines;
-               $msg =~ s/%([0-9A-Fa-f]{2})/chr(hex($1))/eg;
+               $msg =~ s/%([2-9A-F][0-9A-F])/chr(hex($1))/eg;
                &{$conn->{rcvd_notification_proc}}($conn, $msg, $!);
                $! = 0;
        }