[interchange-cvs] interchange - racke modified lib/Vend/Interpolate.pm
interchange-cvs at icdevgroup.org
interchange-cvs at icdevgroup.org
Fri Sep 12 21:59:48 UTC 2008
User: racke
Date: 2008-09-12 21:59:48 GMT
Modified: lib/Vend Interpolate.pm
Log:
Under rare cases the missing search can fall through in a block below, which
caused an internal server error in the following code line:
$obj->{matches} = scalar @{$obj->{mv_results}};
This is now mitigated by an empty mv_results array and results in a search
error as one would expect.
Revision Changes Path
2.307 interchange/lib/Vend/Interpolate.pm
rev 2.307, prev_rev 2.306
Index: Interpolate.pm
===================================================================
RCS file: /var/cvs/interchange/lib/Vend/Interpolate.pm,v
retrieving revision 2.306
retrieving revision 2.307
diff -u -r2.306 -r2.307
--- Interpolate.pm 28 Jul 2008 21:27:28 -0000 2.306
+++ Interpolate.pm 12 Sep 2008 21:59:48 -0000 2.307
@@ -1,6 +1,6 @@
# Vend::Interpolate - Interpret Interchange tags
#
-# $Id: Interpolate.pm,v 2.306 2008-07-28 21:27:28 mheins Exp $
+# $Id: Interpolate.pm,v 2.307 2008-09-12 21:59:48 racke Exp $
#
# Copyright (C) 2002-2008 Interchange Development Group
# Copyright (C) 1996-2002 Red Hat, Inc.
@@ -28,7 +28,7 @@
require Exporter;
@ISA = qw(Exporter);
-$VERSION = substr(q$Revision: 2.306 $, 10);
+$VERSION = substr(q$Revision: 2.307 $, 10);
@EXPORT = qw (
@@ -4681,6 +4681,7 @@
if(! $obj) {
$obj = perform_search();
$obj = {
+ mv_results => [],
matches => 0,
mv_search_error => [ errmsg('No search was found') ],
} if ! $obj;
More information about the interchange-cvs
mailing list