[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
[mv] GlobalSubs handled differently in MV 4.x than in 3.x
****** message to minivend-users from Randy Moore <ramoore@axion-it.net> ******
Hi,
I just wanted to give a warning to anyone converting existing stores from
MV 3.x to MV 4.x about GlobalSubs.
GlobalSubs are not supposed to be subject to Safe checks, and so, can do
unSafe things.
In MV 3.x, you could call a Globalsub from embedded Perl code and it would
be allowed to do unSafe operations, as expected.
But, under MV 4.x, this is no longer true. If you call your GlobalSub from
embedded Perl code, it can NOT do unSafe operations.
I was able to get around this problem by replacing my GlobalSubs with
globally defined (in minivend.cfg) UserTags. Since these are not called
from within Perl, they are still exempt from Safe checking.
If someone can explain the technical details as to why this changed (or
correct any misconceptions I have above), I'd love to know. It may make it
easier to know when and if GlobalSubs can still be used for unSafe operations.
Hope this warning helps someone.
Randy Moore
Axion Information Technologies, Inc.
email ramoore@axion-it.net
phone 301-408-1200
fax 301-445-3947
-
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