Skip to content

Commit

Permalink
Fix for BounceReferrals including process path
Browse files Browse the repository at this point in the history
Originally from an internal project:

Author: David Christensen <david@endpoint.com>
Date:   Wed Jan 14 01:16:40 2009 +0000

    Fix for disappearing form in the BounceReferrals codepath to correct for GA issue
  • Loading branch information
jonjensen committed Apr 28, 2016
1 parent a19a8b5 commit 6ba0845
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions lib/Vend/Dispatch.pm
@@ -1,6 +1,6 @@
# Vend::Dispatch - Handle Interchange page requests
#
# Copyright (C) 2002-2013 Interchange Development Group
# Copyright (C) 2002-2016 Interchange Development Group
# Copyright (C) 2002 Mike Heins <mike@perusion.net>
#
# This program was originally based on Vend 0.2 and 0.3
Expand All @@ -24,7 +24,7 @@
package Vend::Dispatch;

use vars qw($VERSION);
$VERSION = '1.114';
$VERSION = '1.115';

use POSIX qw(strftime);
use Vend::Util;
Expand Down Expand Up @@ -1629,7 +1629,9 @@ EOF
map { "$_=$CGI::values{$_}\n" }
grep { !$Vend::Cfg->{BounceReferrals_hide}->{$_} }
sort keys %CGI::values;
my $url = vendUrl($path eq '' ? $Vend::Cfg->{DirectoryIndex} : $path, undef, undef, { form => $form, match_security => 1 });
my $url = vendUrl($path eq '' ? $Vend::Cfg->{DirectoryIndex} : $path,
undef, undef,
{ form => $form, match_security => 1, no_default_process => 1 });
$url = header_data_scrub($url);
my $msg = get_locale_message(
301,
Expand Down
6 changes: 3 additions & 3 deletions lib/Vend/Util.pm
@@ -1,6 +1,6 @@
# Vend::Util - Interchange utility functions
#
# Copyright (C) 2002-2009 Interchange Development Group
# Copyright (C) 2002-2016 Interchange Development Group
# Copyright (C) 1996-2002 Red Hat, Inc.
#
# This program was originally based on Vend 0.2 and 0.3
Expand Down Expand Up @@ -98,7 +98,7 @@ use Vend::Safe;
use Vend::File;
use subs qw(logError logGlobal);
use vars qw($VERSION @EXPORT @EXPORT_OK);
$VERSION = substr(q$Revision: 2.127 $, 10);
$VERSION = '2.128';

my $Eval_routine;
my $Eval_routine_file;
Expand Down Expand Up @@ -1343,7 +1343,7 @@ sub vendUrl {

my $extra;
if($opt->{form}) {
$path = $Vend::Cfg->{ProcessPage} unless $path;
$path ||= $Vend::Cfg->{ProcessPage} unless $opt->{no_default_process};
if($opt->{form} eq 'auto') {
my $form = '';
while( my ($k, $v) = each %$opt) {
Expand Down

0 comments on commit 6ba0845

Please sign in to comment.