
interchange-cvs at icdevgroup
Jan 13, 2009, 8:59 PM
Post #4 of 4
(596 views)
Permalink
|
|
interchange - jon modified lib/Vend/Dispatch.pm
[In reply to]
|
|
User: jon Date: 2009-01-14 04:59:15 GMT Modified: lib/Vend Tag: STABLE_5_6-branch Dispatch.pm Log: BounceReferrals changes: * Fix bug that kept query strings from being passed through due to use of nonexistent %$CGI::Values instead of %CGI::Values. * Remove mv_pc and mv_source to prevent redirection loops. * Don't generate a "process" URL for root URL; use DirectoryIndex instead, if available. Thanks to David Christensen <david [at] endpoint>. Revision Changes Path No revision No revision 1.101.2.3 interchange/lib/Vend/Dispatch.pm rev 1.101.2.3, prev_rev 1.101.2.2 Index: Dispatch.pm =================================================================== RCS file: /var/cvs/interchange/lib/Vend/Dispatch.pm,v retrieving revision 1.101.2.2 retrieving revision 1.101.2.3 diff -u -u -r1.101.2.2 -r1.101.2.3 --- Dispatch.pm 31 Dec 2008 20:36:06 -0000 1.101.2.2 +++ Dispatch.pm 14 Jan 2009 04:59:15 -0000 1.101.2.3 @@ -1,8 +1,8 @@ # Vend::Dispatch - Handle Interchange page requests # -# $Id: Dispatch.pm,v 1.101.2.2 2008-12-31 20:36:06 jon Exp $ +# $Id: Dispatch.pm,v 1.101.2.3 2009-01-14 04:59:15 jon Exp $ # -# Copyright (C) 2002-2008 Interchange Development Group +# Copyright (C) 2002-2009 Interchange Development Group # Copyright (C) 2002 Mike Heins <mike [at] perusion> # # This program was originally based on Vend 0.2 and 0.3 @@ -26,7 +26,7 @@ package Vend::Dispatch; use vars qw($VERSION); -$VERSION = substr(q$Revision: 1.101.2.2 $, 10); +$VERSION = substr(q$Revision: 1.101.2.3 $, 10); use POSIX qw(strftime); use Vend::Util; @@ -1453,8 +1453,9 @@ my $form = join '', map { "$_=$CGI::values{$_}\n" } - sort keys %$CGI::values; - my $url = vendUrl($path, undef, undef, { form => $form, match_security => 1 }); + grep !/^mv_(?:pc|source)$/, + sort keys %CGI::values; + my $url = vendUrl($path eq '' ? $Vend::Cfg->{DirectoryIndex} : $path, undef, undef, { form => $form, match_security => 1 }); my $msg = get_locale_message( 301, "Redirected to %s.", _______________________________________________ interchange-cvs mailing list interchange-cvs [at] icdevgroup http://www.icdevgroup.org/mailman/listinfo/interchange-cvs
|