[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] future of ISINDEX in mv4+
****** message to minivend-users from Mike Heins <mikeh@minivend.com> ******
Quoting cfm@maine.com (cfm@maine.com):
>
> Is ISINDEX gone forever in mv4+?
Not intentionally, though it looks like it went bye-bye. It seemed difficult
to provide compatiblity with the old "SeSSionID;arg;n" session format
and still keep compatibility.
You can get access to the values sent, though, from the @Global::argv
array -- presuming your web server reads and sends them as an ISINDEX
(i.e. @ARGV in CGI).
I am beginning to think that we should optionally not die in that
situation, anyway, unless the page gets to a form action situation.
You might try this patch (or its equivalent) to Server.pm:
*** /r/Server.pm Tue Sep 19 14:58:39 2000
--- /rt/Server.pm Sun Nov 19 17:38:52 2000
***************
*** 165,170 ****
--- 165,174 ----
#::logDebug("found session stuff: $CGI::values{mv_session_id} --> $CGI::values{mv_arg} --> $CGI::values{mv_pc} ");
shift @pairs;
}
+ elsif ($#pairs == 1 and $pairs[0] !~ /=/) { # Must be an isindex
+ $CGI::values{ISINDEX} = $pairs[0];
+ $CGI::values_array{ISINDEX} = [ split /\+/, $pairs[0] ];
+ }
my $redo;
CGIVAL: {
# This loop semi-duplicated in store_cgi_kv
***************
That will place the value of the ISINDEX in $CGI->{ISINDEX} and the
array value in $CGI_array->{ISINDEX}.
--
Akopia, Inc., 131 Willow Lane, Floor 2, Oxford, OH 45056
phone +1.513.523.7621 fax 7501 <heins@akopia.com>
Research is what I'm doing when I don't know what I'm doing.
-- Wernher Von Braun
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list