Use WebGUI::Pluggable::instanciate instead of string eval to load Image::Graph modules. Fixes bug #11898.
This commit is contained in:
parent
a614d4f230
commit
4b1af3de18
2 changed files with 5 additions and 5 deletions
|
|
@ -6,6 +6,7 @@
|
||||||
- fixed #11773: SQL injection vulnerability in Edit Thing form processing code.
|
- fixed #11773: SQL injection vulnerability in Edit Thing form processing code.
|
||||||
- fixed #11906: Carousel slide height problems
|
- fixed #11906: Carousel slide height problems
|
||||||
- fixed #11900: Request Approval for Version Tag Workflow activity can't select --Continue with this workflow
|
- fixed #11900: Request Approval for Version Tag Workflow activity can't select --Continue with this workflow
|
||||||
|
- fixed #11898: String eval used in Image::Graph
|
||||||
|
|
||||||
7.10.2
|
7.10.2
|
||||||
- fixed #11884: Editing Templates impossible / Code editor not loaded
|
- fixed #11884: Editing Templates impossible / Code editor not loaded
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ use WebGUI::Image::Palette;
|
||||||
use WebGUI::Image::Font;
|
use WebGUI::Image::Font;
|
||||||
use List::Util;
|
use List::Util;
|
||||||
use WebGUI::Utility;
|
use WebGUI::Utility;
|
||||||
|
use WebGUI::Pluggable;
|
||||||
|
|
||||||
our @ISA = qw(WebGUI::Image);
|
our @ISA = qw(WebGUI::Image);
|
||||||
|
|
||||||
|
|
@ -545,11 +546,9 @@ sub load {
|
||||||
my $session = shift;
|
my $session = shift;
|
||||||
my $namespace = shift;
|
my $namespace = shift;
|
||||||
|
|
||||||
my $cmd = "use $namespace";
|
my $plugin = eval {
|
||||||
eval($cmd);
|
WebGUI::Pluggable::instanciate($namespace, 'new', [$session, ]);
|
||||||
|
};
|
||||||
$cmd = $namespace.'->new($session)';
|
|
||||||
my $plugin = eval($cmd);
|
|
||||||
return $plugin;
|
return $plugin;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue