This commit is contained in:
JT Smith 2005-08-25 21:24:29 +00:00
parent c815f04f6b
commit 1dda786578

View file

@ -94,6 +94,10 @@ sub page {
my $method = "view";
if (exists $session{form}{func}) {
$method = $session{form}{func};
unless ($method =~ /^[A-Za-z]+$/) {
WebGUI::ErrorHandler::security("tried to call a non-existent method $method on $assetUrl");
$method = "view";
}
}
$method = "www_".$method;
$output = eval{$asset->$method()};