Asset->get should return a copy of the properties hashref

This commit is contained in:
JT Smith 2007-01-29 17:53:56 +00:00
parent 7a14ebd639
commit b92da4afab
3 changed files with 5 additions and 3 deletions

View file

@ -461,7 +461,8 @@ sub get {
if (defined $propertyName) {
return $self->{_properties}{$propertyName};
}
return $self->{_properties};
my %copyOfHashRef = %{$self->{_properties}};
return \%copyOfHashRef;
}