[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
[mv] 4.02 UserTag implementation misbehaving?
****** message to minivend-users from "Ton Verhagen" <ton@verhagen.net> ******
Please could anyone help me with the following as I am not sure
if I interpret the Docs correctly.
As far as I understand the docs:
- UserTags defined in minivend.cfg are global and can do all kind
of 'UnSafe' stuff;
- UserTags defined in catalog.cfg are restricted by the Safe
module;
If the above is correct (which I believe) than I do not
understand why the following UserTag (defined in minivend.cfg)
gets trapped by the Safe module.
(Error message: ...Safe: Can't locate object method "Dumpxs" via
package "Data::Dumper" at
/usr/lib/perl5/5.00503/i386-linux/Data/Dumper.pm line 429.)
UserTag my_uneval Order ref
UserTag my_uneval Routine <<EOR
sub {
return Vend::Util::uneval(@_);
}
EOR
Called on a page like:
[perl]
...
return $Tag->my_uneval({ref=>$someref});
[/perl]
This tag will only work when I set AllowGlobal in minivend.cfg
and add global=1 to the perl tags. But shouldn't this work
without having to define the catalog as 'AllowGlobal'?
Am I mistaken or is the UserTag implementation showing some kind
of misbehaviour?
Hope that one of you 'guys' (and girls of course) can shed some
light.
All the best,
Ton
-
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