[interchange] Fix broken parsing on session cookie

Mark Johnson interchange-cvs at icdevgroup.org
Wed Feb 5 02:24:56 UTC 2014


commit 38090de9a35ebc9fad304991c05489bd20164317
Author: Mark Johnson <mark at endpoint.com>
Date:   Tue Feb 4 21:23:29 2014 -0500

    Fix broken parsing on session cookie
    
    * Modifications to support IPv6 left it so it didn't work
      properly on either IPv4 or IPv6.

 lib/Vend/Dispatch.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/Vend/Dispatch.pm b/lib/Vend/Dispatch.pm
index 5df06ff..b0b1de9 100644
--- a/lib/Vend/Dispatch.pm
+++ b/lib/Vend/Dispatch.pm
@@ -1281,7 +1281,7 @@ sub dispatch {
 		$::Instance->{ExternalCookie} = $sessionid || 1;
 		$Vend::CookieID = $Vend::Cookie = 1;
 	}
-	elsif (defined $CGI::cookie and $CGI::cookie =~ /\bMV_SESSION_ID=(\w{8,32})[:_]([-\@.:A-Za-z0-9]+?)\b/) {
+	elsif (defined $CGI::cookie and $CGI::cookie =~ /\bMV_SESSION_ID=(\w{8,32})[:_]([-\@.:A-Za-z0-9]+)/) {
 	  SESSION_COOKIE: {
 	      my $id = $1;
 	      my $host = $2;



More information about the interchange-cvs mailing list