From 27e7d288dabe0ac8469eeee1ebc9a39fda4e34a1 Mon Sep 17 00:00:00 2001 From: Lucas Bartholemy Date: Wed, 17 May 2006 19:24:32 +0000 Subject: [PATCH] remove redundant code --- lib/WebGUI/Asset.pm | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/WebGUI/Asset.pm b/lib/WebGUI/Asset.pm index 0da0caede..3078e560c 100644 --- a/lib/WebGUI/Asset.pm +++ b/lib/WebGUI/Asset.pm @@ -1769,10 +1769,6 @@ sub www_add { my $self = shift; my %prototypeProperties; my $class = $self->session->form->process("class","className"); - unless ($class =~ m/^[A-Za-z0-9\:]+$/) { - $self->session->errorHandler->security("tried to call an invalid class ".$class); - return ""; - } if ($self->session->form->process('prototype')) { my $prototype = WebGUI::Asset->new($self->session, $self->session->form->process("prototype"),$class); foreach my $definition (@{$prototype->definition($self->session)}) { # cycle through rather than copying properties to avoid grabbing stuff we shouldn't grab