[interchange-cvs] interchange - jon modified 2 files

interchange-cvs at icdevgroup.org interchange-cvs at icdevgroup.org
Wed Dec 31 17:48:29 UTC 2008


User:      jon
Date:      2008-12-31 17:48:29 GMT
Modified:  .        Tag: STABLE_5_6-branch WHATSNEW-5.6
Modified:  lib/Vend Tag: STABLE_5_6-branch Dispatch.pm
Log:
Fixed rare bug that caused requests to / URL with a query string to fail, e.g.:

    http://hostname/?somevar=1

Interchange in that case looked for a page called "?somevar=1" and of course
didn't find it.

Thanks to David Christensen <david at endpoint.com> for the fix.

Revision  Changes    Path
No                   revision



No                   revision



2.1.2.14             interchange/Attic/WHATSNEW-5.6


rev 2.1.2.14, prev_rev 2.1.2.13
Index: WHATSNEW-5.6
===================================================================
RCS file: /var/cvs/interchange/Attic/WHATSNEW-5.6,v
retrieving revision 2.1.2.13
retrieving revision 2.1.2.14
diff -u -u -r2.1.2.13 -r2.1.2.14
--- WHATSNEW-5.6	12 Nov 2008 04:20:36 -0000	2.1.2.13
+++ WHATSNEW-5.6	31 Dec 2008 17:48:29 -0000	2.1.2.14
@@ -8,6 +8,23 @@
 See UPGRADE document for a list of incompatible changes.
 
 
+Interchange 5.6.2 not yet released.
+
+Core
+----
+
+* Fixed rare bug that caused requests to / URL with a query string to fail, e.g.:
+
+  http://hostname/?somevar=1
+
+  Interchange in that case looked for a page called "/?somevar=1".
+
+  Thanks to David Christensen <david at endpoint.com> for the fix.
+
+
+------------------------------------------------------------------------------
+
+
 Interchange 5.6.1 released 2008-11-13.
 
 Core



No                   revision



No                   revision



1.101.2.1            interchange/lib/Vend/Dispatch.pm


rev 1.101.2.1, prev_rev 1.101
Index: Dispatch.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Dispatch.pm,v
retrieving revision 1.101
retrieving revision 1.101.2.1
diff -u -u -r1.101 -r1.101.2.1
--- Dispatch.pm	25 Apr 2008 09:08:03 -0000	1.101
+++ Dispatch.pm	31 Dec 2008 17:48:29 -0000	1.101.2.1
@@ -1,6 +1,6 @@
 # Vend::Dispatch - Handle Interchange page requests
 #
-# $Id: Dispatch.pm,v 1.101 2008-04-25 09:08:03 racke Exp $
+# $Id: Dispatch.pm,v 1.101.2.1 2008-12-31 17:48:29 jon Exp $
 #
 # Copyright (C) 2002-2008 Interchange Development Group
 # Copyright (C) 2002 Mike Heins <mike at perusion.net>
@@ -26,7 +26,7 @@
 package Vend::Dispatch;
 
 use vars qw($VERSION);
-$VERSION = substr(q$Revision: 1.101 $, 10);
+$VERSION = substr(q$Revision: 1.101.2.1 $, 10);
 
 use POSIX qw(strftime);
 use Vend::Util;
@@ -1592,6 +1592,8 @@
 #::logDebug("request_uri=$CGI::request_uri script_path=$CGI::script_path");
         if($CGI::request_uri !~ /^$CGI::script_path/) {
             $Vend::FinalPath = $CGI::request_uri;
+            # remove any trailing query string
+            $Vend::FinalPath =~ s/\?.*//;
 #::logDebug("FinalPath now $CGI::request_uri");
         }
         else {







More information about the interchange-cvs mailing list