hrmmm
This commit is contained in:
parent
c815f04f6b
commit
1dda786578
1 changed files with 4 additions and 0 deletions
|
|
@ -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()};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue