[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] *All* users get same Session-ID - fixed, patch included
****** message to minivend-users from Mike Heins <mikeh@minivend.com> ******
Quoting Randy Moore (ramoore@axion-it.net):
>
> Hello all,
>
> I've found & fixed (I believe) the bug that was causing all new visitors to
> get the session ID of the last visitor to checkout. This may be a Perl
> issue that only affects NT (I can't imagine I'd be the first to notice this
> otherwise).
>
> In the map_cgi subroutine on line 2177 of 'bin/minivend', the line that
> currently says:
> $CGI::query_string = http()->Query;
> should be changed to:
> $CGI::query_string = http()->Query || ';;';
>
> When their is no query on the calling URL
> (ie 'http://www.mystore.com/cgi-bin/mystore'), the http()->Query routine
> seems to return 'undef' (I believe, $CGI::query_string certainly doesn't
> contain anything at this point). But, when the map_cgi subroutine returns
> to the dispatch subroutine (which called it), the value of
> $CGI::query_string still contains whatever value it held before the call to
> 'map_cgi'.
>
> If the calling URL actually contained a query, the map_cgi function would
> properly set the value of $CGI::query_string (and that value would persist
> outside of map_cgi).
>
> Please let me know if anyone sees a problem with my solution to this.
>
I don't see one -- if it works for you on MV3, you can run with it;
MV3 is unlikely to be updated, so there won't be any upgrade problems. 8-)
Someday I will get a copy of Windows 2000 and try out MV4 and Perl 5.6,
and there might even be a seriously usable Windows Minivend.
Regards,
Mike
--
Internet Robotics, 131 Willow Lane, Floor 2, Oxford, OH 45056
phone +1.513.523.7621 fax 7501 <mikeh@minivend.com>
I don't buy from direct telephone or email marketers. This makes it
hard for me to find a phone company. ;>
-
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