Date: Thu, 27 Sep 2001 11:09:23 -0400 (EDT) From: Eric Cronin <ecronin@devon.eecs.umich.edu> To: FreeBSD-gnats-submit@freebsd.org Cc: dhelder@eecs.umich.edu Subject: ports/30872: purts/irc/p5-IRC patch chokes on messages/channels w/ :'s Message-ID: <200109271509.f8RF9Nl61081@devon.eecs.umich.edu>
next in thread | raw e-mail | index | archive | help
>Number: 30872 >Category: ports >Synopsis: Patch for IPv6 compat doesn't handle extra :'s in conversation >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Sep 27 08:10:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Eric Cronin >Release: FreeBSD 4.3-RELEASE-p14 i386 >Organization: >Environment: System: FreeBSD devon.eecs.umich.edu 4.3-RELEASE-p14 FreeBSD 4.3-RELEASE-p14 #1: Wed Aug 29 16:06:52 EDT 2001 root@devon.eecs.umich.edu:/a/tail/host/z/obj/z/src/sys/MP_PIII-IPSEC i386 >Description: If a line of text contains a colon, only the part after the colon is returned due to an incorrect regex >How-To-Repeat: Use included example in package, type "test: this is a test" in IRC, observe that only "this is a test" will be returned by Net::IRC, the "test" ends up in the args. >Fix: Adding a space before the colon might work (not tested with IPv6, which was the original purpose of this patch): - ($from, $line) = $line =~ m/^(.*):(.*?)$/; + ($from, $line) = $line =~ m/^(.*) :(.*?)$/; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200109271509.f8RF9Nl61081>